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