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