when to use UL or OL in html?

前端 未结 12 2034
陌清茗
陌清茗 2020-12-05 03:58

Seems interchangable?

12条回答
  •  误落风尘
    2020-12-05 04:17

    ul means unorded list. It is for lists in whick it doesn't matter what order the list items are in.

    ol means ordered list. It is for lists that are numbered or in some way show that they have a specific ordering.

    By default ul gets you bullet pointed lists and ol numbered lists, although this can be edited in css.

提交回复
热议问题