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