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