← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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