← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

  1. Match report
  2. <style>
  3. <title>
  4. in the head
  5. <!DOCTYPE html>
  6. My Hobbies
  7. in the body
  8. <a>
  9. My Hobbies
  10. <head>
  11. False
  12. True
  13. <img>
  14. <link rel="stylesheet">
  15. <meta charset="utf-8">
  16. False
  17. <table>
  18. <h1>
  19. False
  20. Art Gallery
  21. Cricket Club
  22. Space Facts
  23. <!DOCTYPE html>
  24. <head>
  25. in the body
  26. Cricket Club
  27. in the body
  28. Space Facts
  29. True
  30. the body
  31. <body>
  32. All about me
  33. <!DOCTYPE html>
  34. on the browser tab
  35. False
  36. <!DOCTYPE html>
  37. in the body
  38. Space Facts
  39. </html>
  40. <p>

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