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