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