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