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