← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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