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