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