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