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