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