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