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