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