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