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