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