← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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