← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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