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