Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Multiple UL inside LI?

Tags:

html

Im creating a nested grid based menu. UL = row and LI = column. The outcome is successful and I was able to avoid too much div mark ups.

My question is if it's VALID to have multiple instances of UL inside LI?

<nav>
    <ul>
        <li><a href="#">(VALID)</a></li>
        <li><a href="#">(VALID)</a>
            <ul>
                <li>link1</li>
                <li>link2</li>
            </ul>
        </li>
        <li><a href="#">(I'M NOT SURE)</a>
            <ul>
                <li>
                    <ul>
                        <li>any contents here</li>
                        <li>any contents here</li>
                    </ul>  
                    <ul>
                        <li>any contents here</li>
                        <li>any contents here</li>
                    </ul>
                    <ul>
                        <li>any contents here</li>
                        <li>any contents here</li>
                    </ul>
                </li>
            </ul>
        </li>
    </ul>
</nav>

fiddle

like image 981
wj R. Avatar asked Oct 22 '25 23:10

wj R.


1 Answers

Yes ......its vaild..... You can nest it to as much as u want ..there is no limit. .....

like image 83
manjinder rooprai Avatar answered Oct 27 '25 05:10

manjinder rooprai



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!