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