25.2k views
4 votes
PLEASE HELP ME ASAP!!! THIS IS DUE SOON!!

Write the code for a two-item unordered list, with another two-item unordered list nested in its first item.

1 Answer

6 votes

The below displays ice-creams with its associated flavours. This we would display using <UL>

• Stick

o Chocobar

o Feast

• Bowl

o Butterscotch

o Blueberry

<UL>

<LI>Stick

<UL>

<LI>Chocobar </LI>

<LI> feast</LI>

</UL>

</LI>

<LI>Bowl

<UL>

<LI> Butterscotch </LI>

<LI> Blueberry </LI>

</UL>

</LI>

</UL>

Here <UL> tag is used to create un ordered list and one another <UL> tag inside <LI> created nested list which is the actual requirement. Like this we can created nested unordered lists and you can nest upto 4 levels and increasing the number of levels further may reduce clarity.

User AndacAydin
by
5.4k points