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