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