← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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