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