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