Lesson 5:Lists Within Lists


#1

Now that you have your profile sections set up, it's time to add in your favorite things!

You can do this by creating additional lists within your unordered list's

  • tags

    Within the

  • tag for Interests, we created an ordered list (
      ) with three interests.

      Go nuts with your lists within lists! The only requirement is that you have at least one ordered list(

        ) and one unordered list (
      ).

      Click "Stuck? Get a hint!" for more examples.

      Here's My Code:





    <body>
        <div>
            <img src="https://s3.amazonaws.com/codecademy-blog/assets/ninja_zpsa5dbe37a.jpg.">
            <p>Age: 25</p>
            <p>Gender: Male</p>
    
            <p>Education: StandFord University Medical School, University Of California, Irvine, Phillips Community College University Of Arkansas, Central High School</p>
            <p>Chat Customer Support Agent, Expert, Social Media Ambassador, Social Media Contributor</p>
       </div>
    
            <div>
                <ul>Interests
                    <li>Being Responsible For Your Career</li>
                    <li>Leadership</li>
                    <li>Success</li>
                </ul>
               <ul>Where I've Lived
                    <li>Little Rock</li>
                    <li>West Helena</li>
                    <li>JonesBoro</li>
               </ul>
               <ul>Interest Jobs
                    <li>Software Engineer</li>
                    <li>Customer Service</li>
                    <li>Social Media Specialist</li>
               </ul>
               <ul>Favorite Quotes
                    <li>Every morning you have two choices continue your sleep with dreams or either wake up and chase your dreams. Choice is yours!</li>
                    <li>I'm a presence for good in my community.</li>
                    <li>Did you feel a little warm in the morning? I've sent you some warm hugs in my thoughts. Good Morning and have a wonderful and safe day. I love You</li>
               </ul>
            </div>
    </body>

    I'm a little bit confused on what to do next, from the previous lesson I did a great job on it & submit my code. And now when I came to this lesson that I'm doing right now. It was telling me that I need to Go nuts with my lists within lists. But one of the requirements is to have at least one of ordered lists

      & one unordered lists
      . Can someone please help me figure out how to fix my code?

      Thank you


  • #2

    You haven't got any nested lists? Maybe you want to read about it on mdn (scroll down a little) or visit the first exercise where you made list within list? here is a link to that exercise


    #3

    Thank you so much for responding of how to fix my code & I really appreciate it. But I have a another question for you. So I've looking on my previously lesson 5 about "List inside A list", meaning do I have to change some part of my code to something else. I was thinking If I can find something in my code that's not working & try again to see if it's correct or not?

    Thank you


    #4

    I just referred to list within list because that is where nested list are explained. You don't have to change anything. I wanted you to see your early code + explanation of nested lists.

    Yea, you can simply make changes if you like, and submit again. Keep in mind that each exercises only checks for the things which are required in the exercise