← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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