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