← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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