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