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