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