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