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