Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The author writes >> I’ve seen numbers written inside of a <li> that’s inside of a <ul> — instead of just using an <ol>

An ordered list <ol> automatically adds a number to each list item indicating its position in the order in the list which would save developers the effort of adding code to insert numbers into ordinary list items in an unordered list.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: