HTML code for INR

前端 未结 12 2405
野趣味
野趣味 2020-12-08 00:36

For pound (£) there is HTML code £.

For INR can you please tell me the HTML code?

相关标签:
12条回答
  • 2020-12-08 00:50

    According to Wikipedia, the new rupee sign hasn't been added to Unicode yet (U+20B9 ₹ was added to Unicode in late 2010), so you can't use it from HTML. The old (unofficial) symbol is ₨ — ₨.

    0 讨论(0)
  • 2020-12-08 00:57

    Use this for Indian rupee sign:

    र — र

    0 讨论(0)
  • 2020-12-08 00:57

    Here is one more example based on Intl.NumberFormat native api.

    var number = 123456.789;
    
    // India uses thousands/lakh/crore separators
    console.log(new Intl.NumberFormat('en-IN', {
      style: 'currency',
      currency: 'INR',
      // limit to six significant digits (Possible values are from 1 to 21).
      maximumSignificantDigits: 6
    }).format(number));

    0 讨论(0)
  • 2020-12-08 01:00

    No! You should avoid using HTML entities.

    Instead of using HTML entities for symbols you should just put those symbols directly into your text and correctly encode your document.

    • Instead of using £ you should use the character £.
    • For rupee there is no Unicode character. You can use a PNG file instead rupee. Alternatively you can use the unicode character रू which is currently the most commonly used single character for rupee. Other alternatives are using INR, Rs. or rupees.

    When the new Unicode symbol for the Indian Rupee is introduced then could use that instead (but note that it will be a while before all browsers support it).

    0 讨论(0)
  • 2020-12-08 01:02

    just add &#8377 with semicolon where ever you want to display the rupee sign it worked for me

    0 讨论(0)
  • 2020-12-08 01:05

    SPAN class code. Stylesheet:

    <link rel="stylesheet" type="text/css" href="http://cdn.webrupee.com/font">
    

    Now use the below mentioned code to type Indian Rupee symbol,

    <span class="WebRupee">Rs.</span>
    

    Once the popular font families will be updated to Unicode 6.0.0, then you will be able to type Indian Rupee Symbol by typing ₹ in HTML editor.

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