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