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