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