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