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