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