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