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