Is it ok to use in place of blindly?

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

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

8条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-02 15:45

    As others have mentioned using >, , etc. adds semantics, and this is important because you say something about why you want to emphasize something, and increases the readability of your html, because you know why its in bold.

    Furthermore screen readers use the strong tags to make an audible difference when reading it aloud.

    Maybe you could think about the audio represenation as a guide. If you would want a difference when read aloud, mark it as for instance, if not use .

    Then there is the issue of rendering: I don't actually know if all browsers will render a as a bold and if it will stay that way.

    So in short: No.

提交回复
热议问题