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