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