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