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