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