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