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