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