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