← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

  1. Class 7 Blog
  2. False
  3. <!DOCTYPE html>
  4. in the body
  5. <title>
  6. True
  7. My Hobbies
  8. </html>
  9. <!DOCTYPE html>
  10. Welcome!
  11. <h1>
  12. in the body
  13. <ul>
  14. in the body
  15. True
  16. Cricket Club
  17. on the browser tab
  18. <body>
  19. the body
  20. False
  21. False
  22. in the head
  23. in the head
  24. <!DOCTYPE html>
  25. Class 7 Blog
  26. Space Facts
  27. Space Facts
  28. True
  29. My Hobbies
  30. <!DOCTYPE html>
  31. Cricket Club
  32. My Hobbies
  33. in the body
  34. Planets
  35. Easy snacks
  36. <img>
  37. Art Gallery
  38. True
  39. <p>
  40. True

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