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