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