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