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