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