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