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