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