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