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