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