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