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