← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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