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