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