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