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