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