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