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