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