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