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