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