← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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