Need of <ul> tag

When formatting, why is the the ul tag needed? The li tag runs the same without it. Plz explain…

You’d use it to be semantically correct.

This is recommended for the purpose of making your markup semantically descriptive, which will help in regards to accessibility (screen readers) and SEO.

You’re probably able to use <li>s without <ul> because HTML is very lenient. Doesn’t mean the code would be correct. If we were to compare it with our languages, let’s say it’s the equivalent of good grammar (even though we’re technically allowed to structure our sentences any way we please).


Thank you, that was quite helpful.