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