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