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