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