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