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