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