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