← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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