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