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