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