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