← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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