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