← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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