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