Build a Stylized To-Do List - Build a Stylized To-Do list

Tell us what’s happening:

I think my answer is correct, but FreeCodeCamp is not accepting it.

  • Item 1
    <ul class="sub-item">
          <li>
        <a class="sub-item-link" href=" href="https://www.freecodecamp.org/" target="_blank"">Sub item</a>
         </li>
    </ul>
          </li>
    
          9. After the label elements, there should be an unordered list with the class sub-item.
    

    Failed:1

    Your code so far

    <!-- file: index.html -->
    <!DOCTYPE html>
    <html lang="en">
    
    <head>
        <meta charset="utf-8">
        <title>Styled To-Do List</title>
    </head>
    
    <body>
        <ul class="todo-list">
            <li> 
                <input type="checkbox" id="item-1"> 
                <label for="item-1">Item 1</label>
    
        <ul class="sub-item">
              <li>
            <a class="sub-item-link" href=" href="https://www.freecodecamp.org/" target="_blank"">Sub item</a>
             </li>
        </ul>
              </li>
              
            <li> 
                <input type="checkbox" id="item-2"> 
                <label for="item-2">items-2</label>
            </li>
            <li> 
                <input type="checkbox" id="item-3"> 
                <label for="item-3">Item 3</label>
            </li>
            <li> 
                <input type="checkbox" id="item-4"> 
                <label for="item-4">Item 4</label>
            </li>
            
    
        </ul>
    </body>
    
    </html>
    
    /* file: styles.css */
    
    

    Your browser information:

    User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/149.0.0.0 Safari/537.36

    Challenge Information:

    Build a Stylized To-Do List - Build a Stylized To-Do list

    GitHub Link: freeCodeCamp/curriculum/challenges/english/blocks/lab-stylized-to-do-list/66c051d13a6a20255a963695.md at main · freeCodeCamp/freeCodeCamp · GitHub

The keyword here is labels, apply to each one, not the first one alone.

Hi @abdirahmaanali0025,

Your code will be easier to read and debug if you format it. You can do that inside the fCC editor by right-clicking and selecting “Format Document.”

Please carefully review User Story #3. You have the four li items requested but only the first contains the ul element that was asked.

Happy coding