Why should I use UL/LI in my HTML?

前端 未结 9 1252
长发绾君心
长发绾君心 2021-02-13 13:04

I have the following structure that seems really nice for me and I always use HTML5:


      
9条回答
  •  我在风中等你
    2021-02-13 13:21

    It is more semantically correct.

    What you have above is an unordered list of languages. You should be using an unordered list of items (UL element with LI elements) to be semantically correct about it.

    This also helps screen readers and other technologies that depend on correct semantics to work.

提交回复
热议问题