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