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