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