JavaScript Treehouse Club - MASH MASH - HTML Forms, Divs, and Inputs

unsure of how to add div element favorite stuff to mash game

having trouble with mash game

index.html
<body>
  <h1>First Day of School</h1>

  <form>

    <div>
    <div class="favorite_stuff">
      <h4>Favorite Foods?</h4>
      <input name="food[]">
      <input name="food[]">
      <input name="food[]">
      <input name="food[]">
    </div>

    <div>
       <div class="favorite_stuff">
      <h4>Favorite Animals?</h4>
      <input name="animal[]">
      <input name="animal[]">
      <input name="animal[]">
      <input name="animal[]">
    </div>

  </form>

</body>

1 Answer

KRIS NIKOLAISEN
PRO
KRIS NIKOLAISEN
Pro Student 47,300 Points

You should update the existing div tags instead of adding new ones. You currently have two opening div tags and only one closing tag. To fix you can delete the opening div tags that don't have the class.