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