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