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