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