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