← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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