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