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