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