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