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