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