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