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