← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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