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