Can we use any other TAG inside along with ? [duplicate]

For your code to be valid you can’t put any tag inside a <ul> other than an <li>.

You can however, put any block level element inside the <li>, like so:

<ul>
        <li>
            <h2>...</h2>
            <p>...</p>
            <p>...</p>
        </li>
</ul>

Leave a Comment