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