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