Hi, I have about six months of experience in web development. I have the following observation, I often use tags <div>, this gives me the opportunity to position elements, archive elements, and it seems that I can use tags <div>to do everything just by playing with my display property.
I have never had to use elements <ul>or <li>in combination, except for navigating the horizontal menu, and I'm not sure why you cannot do this with the elements <div>, but it seems to be an “agreement” to achieve a horizontal menu.
Did I miss something? Are there some properties that have elements <li>that are better or more useful than elements <div>?
Please do not limit this question only to the horizontal menu list; I want to know any scenario in which you would use <li>on something else.
source
share