← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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