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