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