← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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