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