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