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