← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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