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