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