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