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