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