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