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