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