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