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