← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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