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