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