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