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