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