← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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