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