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