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