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