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