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