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