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