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