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