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