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