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