← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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