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