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