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