← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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