`—` or `—` is there any difference in HTML output?

前端 未结 5 1443
孤城傲影
孤城傲影 2021-02-04 23:18

or

Is there a difference between these? Is one better-supported than the other?

5条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-02-04 23:36

    They are exactly the same character. See: http://en.wikipedia.org/wiki/Dash

    Barring browser bugs they will display the same in all cases, so the only difference would be concerning code readability, which would point to .

    Or, if you are using UTF-8 as a charset in your HTML document, you could enter the character directly. That would also display exactly the same.

提交回复
热议问题