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