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