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