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