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