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