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