← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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