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