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