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