when to use UL or OL in html?

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

Seems interchangable?

12条回答
  •  南笙
    南笙 (楼主)
    2020-12-05 04:23

    With

      the order of the data is important and will be displayed (by default) while with
        , order isn't as important. Example:

        Tomorrow I will

        1. Wake up
        2. Have breakfast
        3. Go to sleep

        During breakfast, I will eat

        • Butter
        • Eggs
        • Bacon

提交回复
热议问题