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