← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

  1. <h1>
  2. <html>
  3. </html>
  4. in the body
  5. </head>
  6. False
  7. <!DOCTYPE html>
  8. <!DOCTYPE html>
  9. Planets
  10. <title>
  11. </body>
  12. Match report
  13. Cricket Club
  14. in the body
  15. <table>
  16. True
  17. Planets
  18. the body
  19. True
  20. on the browser tab
  21. False
  22. Cricket Club
  23. True
  24. in the head
  25. Welcome!
  26. in the head
  27. All about me
  28. My Hobbies
  29. Space Facts
  30. True
  31. Match report
  32. My Hobbies
  33. False
  34. False
  35. Cricket Club
  36. True
  37. in the body
  38. <head>
  39. Match report
  40. False

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