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