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