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