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