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