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