← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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