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