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