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