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