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