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