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