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