← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

  1. False
  2. <html>
  3. <link rel="stylesheet">
  4. Welcome!
  5. False
  6. the body
  7. </html>
  8. <h1>
  9. in the body
  10. <!DOCTYPE html>
  11. <img>
  12. Art Gallery
  13. <meta charset="utf-8">
  14. Welcome!
  15. in the body
  16. Easy snacks
  17. Class 7 Blog
  18. <!DOCTYPE html>
  19. </body>
  20. True
  21. Space Facts
  22. Class 7 Blog
  23. in the body
  24. in the head
  25. True
  26. <style>
  27. <head>
  28. True
  29. in the body
  30. False
  31. <head>
  32. </body>
  33. Riya’s Recipes
  34. <!DOCTYPE html>
  35. <ul>
  36. <title>
  37. False
  38. <table>
  39. Planets
  40. <a>

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