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