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