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