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