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