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