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