← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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