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