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