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