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