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