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