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