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