HTML code for an apostrophe

前端 未结 17 988
独厮守ぢ
独厮守ぢ 2020-11-30 18:01

Seemingly simple, but I cannot find anything relevant on the web.

What is the correct HTML code for an apostrophe? Is it ?

相关标签:
17条回答
  • 2020-11-30 18:39

    Although the ' entity may be supported in HTML5, it looks like a typewriter apostrophe. It looks nothing like a real curly apostrophe—which looks identical to an ending quotation mark: .

    Just look when I write them after each other:

    1: right single quotation mark entity, 2: apostrophe entity: '.

    I tried to find a proper entity or alt command specifically for a normal looking apostrophe (which again, looks ‘identical’ to a closing right single quotation mark), but I haven’t found one. I always need to insert a right single quotation mark in order to get the visually correct apostrophe.

    If you use just (ALT + 0146) or autoformat typewriter apostrophes and quotation marks as curly in a word processor like Word 2013, do use <meta charset="UTF-8">.

    0 讨论(0)
  • 2020-11-30 18:41

    If you are looking for single quote, it is

    &#39;
    
    0 讨论(0)
  • 2020-11-30 18:42

    &#39; in decimal.

    %27 in hex.

    0 讨论(0)
  • 2020-11-30 18:43

    A List Apart has a nice reference on characters and typography in HTML. According to that article, the correct HTML entity for the apostrophe is &#8217;. Example use: ’ .

    0 讨论(0)
  • 2020-11-30 18:44

    Here is a great reference for HTML Ascii codes:

    http://www.ascii.cl/htmlcodes.htm

    The code you are looking for is: &#39;

    0 讨论(0)
提交回复
热议问题