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