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