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