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