← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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