← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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