← Page structure: head and body lesson New set →

HTML Worksheet: Page Structure

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

Answer key

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

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