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