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