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