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