← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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