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