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