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