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