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