← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

HTML and CSS lesson 8: Page structure: head and body · Set 373 · 40 questions
TalentJR

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

Answer key

  1. Art Gallery
  2. Art Gallery
  3. on the browser tab
  4. <ul>
  5. <!DOCTYPE html>
  6. Class 7 Blog
  7. <h1>
  8. <style>
  9. <!DOCTYPE html>
  10. True
  11. False
  12. True
  13. in the body
  14. False
  15. <link rel="stylesheet">
  16. Welcome!
  17. </html>
  18. in the head
  19. Planets
  20. <title>
  21. the body
  22. <!DOCTYPE html>
  23. Welcome!
  24. <img>
  25. Class 7 Blog
  26. Planets
  27. </head>
  28. in the body
  29. in the body
  30. <meta charset="utf-8">
  31. False
  32. Easy snacks
  33. </body>
  34. Cricket Club
  35. <head>
  36. in the head
  37. False
  38. in the head
  39. <!DOCTYPE html>
  40. Welcome!

Free html and css lessons, practice and worksheets at talentjr.in/html-css-for-kids