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