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