What are the benefits of using semantic HTML?

后端 未结 14 759
面向向阳花
面向向阳花 2020-12-01 16:38

Are there some noticeable outcomes in terms of performance or other aspects to follow semantic HTML?

Thanks

14条回答
  •  庸人自扰
    2020-12-01 17:05

    Easier for you and other developers to know whats going on, reads better when CSS et al is not available. "Can" work better when using a screen reader so improves your accessiblity. More importantly I think is it gets you in the habit of writing better mark up which is more likely to validate without having to do too many fixes. Simply put its good practise but I would say don't get too hung up on getting 100% right all the time, brain power is better spend on other problems than arguing over weather a dl is better than a ul for a given problem etc.

提交回复
热议问题