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