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