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