How do you create a nested list?

  • By adding the nested attribute to the
      or

        tag. 
      1. By placing a
          or

            inside an

          1. element. 
          2. By placing an
          3. element inside another
          4. element. 
          5. By using the tag. 
        To create a nested list in HTML, you can place a complete list (

          or

            ) inside a list item (

          1. ) of another list. This allows you to have sub-lists or multi-level lists on your webpage. The browser will typically indent the nested list to indicate the hierarchy. 
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *