← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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