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