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