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