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