← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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