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