DEV Community

Discussion on: A short guide to help you pick the correct HTML tag

Collapse
 
ashleyo profile image
Ashley Oliver

Otherwise excellent article but

Choose <ol>, if you need a numbered list and it will put a number before each item in ascending order.

Do not use tags for styling. Semantically <ol> is for lists whose sequence cannot be changed without changing the information. Numbering - or not - is a default style.

Collapse
 
polgarj profile image
Jozsef Polgar

You're absolutely right. Thank you for bringing it to my attention. :)