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