← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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