+ 1
Why it is necessary to use <ol> and <li> tags as we can also use <p> tag with <br> tag?
2 Antworten
+ 1
Because it shows that it is an ordered list. It might be more useful to things you may not think about. Compatibility with screen readers for the blind or just helps look better for formatting purposes.
+ 1
ol and ul are for formatting purpose. yes u can do the same thing with <p> and <br/> tags but browser will take this as paragraph and a breaking line within paragraph if you use ol and ul browser will identify that there is a list in your web page moreover ul and ol are use for many other purposes like menus for navigation