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