HTML Worksheet: Page Structure
Code tip (Head for the browser, body for you): <!DOCTYPE html> first, then <html> with <head> and <body> inside. The head holds <title> (shown on the browser tab), <meta>, <style> and <link>. The body holds everything you see on the page.
NameDateTime takenScore ___ / 40
- 1.📄 Which part holds everything you see on the page? (a) the head (b) the title (c) the doctype (d) the body
- 2.Which of these goes in the body? (a) <link rel="stylesheet"> (b) <table> (c) <style> (d) <title>
-
3.📄 What is the big heading shown on this page?
<!DOCTYPE html>
<html>
<head>
<title>Cricket Club</title>
</head>
<body>
<h1>Welcome!</h1>
<p>Mars is red.</p>
</body>
</html> (a) Welcome! (b) body (c) Cricket Club (d) Mars is red. -
4.📄 What is the big heading shown on this page?
<!DOCTYPE html>
<html>
<head>
<title>My Hobbies</title>
</head>
<body>
<h1>Welcome!</h1>
<p>Here is my best one.</p>
</body>
</html> (a) body (b) Here is my best one. (c) My Hobbies (d) Welcome! - 5.📄 Where does <a> go: in the head or in the body? (a) in the head (b) in the body
- 6.📄 Where does <img> go: in the head or in the body? (a) in the head (b) in the body
- 7.Which of these goes in the head? (a) <a> (b) <h1> (c) <title> (d) <ul>
- 8.📄 What is the first line of an HTML5 page? (a) <!DOCTYPE html> (b) <head> (c) <html> (d) <body>
- 9.📄 Where does the text of <title> appear? (a) in a big heading (b) at the bottom (c) nowhere (d) on the browser tab
- 10.True or false: <img> goes in the head. (a) True (b) False
- 11.True or false: <a> goes in the body. (a) True (b) False
- 12.🔢 In a basic web page file, which comes LAST? (a) </html> (b) <head> (c) <!DOCTYPE html> (d) <body>
- 13.📄 Where does <p> go: in the head or in the body? (a) in the head (b) in the body
- 14.🔢 In a basic web page file, which comes FIRST? (a) <body> (b) </body> (c) <!DOCTYPE html> (d) <html>
-
15.📄 What does the browser tab show for this page?
<!DOCTYPE html>
<html>
<head>
<title>Class 7 Blog</title>
</head>
<body>
<h1>Match report</h1>
<p>Here is my best one.</p>
</body>
</html> (a) index.html (b) Match report (c) Here is my best one. (d) Class 7 Blog -
16.📄 What does the browser tab show for this page?
<!DOCTYPE html>
<html>
<head>
<title>Art Gallery</title>
</head>
<body>
<h1>Match report</h1>
<p>I like to read.</p>
</body>
</html> (a) index.html (b) Match report (c) I like to read. (d) Art Gallery - 17.True or false: <a> goes in the head. (a) True (b) False
- 18.Which of these goes in the head? (a) <ul> (b) <a> (c) <meta charset="utf-8"> (d) <h1>
- 19.🔢 In a basic web page file, which comes first: “</head>” or “<body>”? (a) <body> (b) </head>
-
20.📄 What does the browser tab show for this page?
<!DOCTYPE html>
<html>
<head>
<title>Class 7 Blog</title>
</head>
<body>
<h1>All about me</h1>
<p>We won by 5 runs.</p>
</body>
</html> (a) All about me (b) Class 7 Blog (c) We won by 5 runs. (d) index.html -
21.📄 What is the big heading shown on this page?
<!DOCTYPE html>
<html>
<head>
<title>Space Facts</title>
</head>
<body>
<h1>Match report</h1>
<p>Thanks for visiting.</p>
</body>
</html> (a) Space Facts (b) Thanks for visiting. (c) body (d) Match report - 22.Which of these goes in the body? (a) <style> (b) <a> (c) <meta charset="utf-8"> (d) <title>
- 23.True or false: <title> goes in the body. (a) True (b) False
-
24.📄 What is the big heading shown on this page?
<!DOCTYPE html>
<html>
<head>
<title>Art Gallery</title>
</head>
<body>
<h1>My drawings</h1>
<p>Mars is red.</p>
</body>
</html> (a) Art Gallery (b) Mars is red. (c) My drawings (d) body -
25.📄 What does the browser tab show for this page?
<!DOCTYPE html>
<html>
<head>
<title>Space Facts</title>
</head>
<body>
<h1>All about me</h1>
<p>I like to read.</p>
</body>
</html> (a) Space Facts (b) All about me (c) I like to read. (d) index.html - 26.🔢 In a basic web page file, which comes first: “</html>” or “<!DOCTYPE html>”? (a) <!DOCTYPE html> (b) </html>
-
27.📄 What is the big heading shown on this page?
<!DOCTYPE html>
<html>
<head>
<title>Class 7 Blog</title>
</head>
<body>
<h1>All about me</h1>
<p>Mars is red.</p>
</body>
</html> (a) Mars is red. (b) All about me (c) body (d) Class 7 Blog - 28.Which of these goes in the head? (a) <img> (b) <style> (c) <h1> (d) <p>
-
29.📄 What does the browser tab show for this page?
<!DOCTYPE html>
<html>
<head>
<title>Art Gallery</title>
</head>
<body>
<h1>Match report</h1>
<p>We won by 5 runs.</p>
</body>
</html> (a) Art Gallery (b) index.html (c) Match report (d) We won by 5 runs. -
30.📄 What is the big heading shown on this page?
<!DOCTYPE html>
<html>
<head>
<title>Riya’s Recipes</title>
</head>
<body>
<h1>Welcome!</h1>
<p>I like to read.</p>
</body>
</html> (a) body (b) Riya’s Recipes (c) I like to read. (d) Welcome! -
31.📄 What is the big heading shown on this page?
<!DOCTYPE html>
<html>
<head>
<title>My Hobbies</title>
</head>
<body>
<h1>Match report</h1>
<p>We won by 5 runs.</p>
</body>
</html> (a) My Hobbies (b) Match report (c) We won by 5 runs. (d) body - 32.Which of these goes in the head? (a) <h1> (b) <img> (c) <ul> (d) <link rel="stylesheet">
- 33.📄 Where does <title> go: in the head or in the body? (a) in the head (b) in the body
- 34.🔢 In a basic web page file, which comes first: “<body>” or “<!DOCTYPE html>”? (a) <!DOCTYPE html> (b) <body>
-
35.📄 What does the browser tab show for this page?
<!DOCTYPE html>
<html>
<head>
<title>My Hobbies</title>
</head>
<body>
<h1>Match report</h1>
<p>Mars is red.</p>
</body>
</html> (a) Mars is red. (b) Match report (c) index.html (d) My Hobbies -
36.📄 What is the big heading shown on this page?
<!DOCTYPE html>
<html>
<head>
<title>Art Gallery</title>
</head>
<body>
<h1>Planets</h1>
<p>We won by 5 runs.</p>
</body>
</html> (a) Art Gallery (b) We won by 5 runs. (c) Planets (d) body -
37.📄 What is the big heading shown on this page?
<!DOCTYPE html>
<html>
<head>
<title>Cricket Club</title>
</head>
<body>
<h1>Match report</h1>
<p>We won by 5 runs.</p>
</body>
</html> (a) Cricket Club (b) body (c) We won by 5 runs. (d) Match report - 38.True or false: <link rel="stylesheet"> goes in the head. (a) True (b) False
-
39.📄 What does the browser tab show for this page?
<!DOCTYPE html>
<html>
<head>
<title>Art Gallery</title>
</head>
<body>
<h1>All about me</h1>
<p>Here is my best one.</p>
</body>
</html> (a) Here is my best one. (b) All about me (c) index.html (d) Art Gallery - 40.📄 Where does <h1> go: in the head or in the body? (a) in the body (b) in the head
Answer key
- the body
- <table>
- Welcome!
- Welcome!
- in the body
- in the body
- <title>
- <!DOCTYPE html>
- on the browser tab
- False
- True
- </html>
- in the body
- <!DOCTYPE html>
- Class 7 Blog
- Art Gallery
- False
- <meta charset="utf-8">
- </head>
- Class 7 Blog
- Match report
- <a>
- False
- My drawings
- Space Facts
- <!DOCTYPE html>
- All about me
- <style>
- Art Gallery
- Welcome!
- Match report
- <link rel="stylesheet">
- in the head
- <!DOCTYPE html>
- My Hobbies
- Planets
- Match report
- True
- Art Gallery
- in the body
Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids