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