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