← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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