Is it ok to use in place of blindly?

前端 未结 8 815
清歌不尽
清歌不尽 2020-12-02 15:38

Note: I know is presentational and is a better way, and

8条回答
  •  时光取名叫无心
    2020-12-02 16:12

    Is it ok to use in place of blindly?

    No.

    To quote Anne van Kesteren (source):

    Let me give some contradictory advice. Please do replace em with i and strong with b. The resulting markup is likely more accurate. Especially with WYSIWYG software it is extremely unlikely they will be used correctly, but also because the notion spread that they are interchangeable with the sole difference being that strong and em are semantic a lot of misuse happened. When in doubt, use i and b.

    And he’s right, of course. strong and b are not the same. em and i are not the same. Only use strong / em if you want to add semantical emphasis to text.

提交回复
热议问题