← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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