开发者

HTML code for INR

开发者 https://www.devze.com 2023-01-10 19:48 出处:网络
For pound (£) there is HTML code £. For INR can you please tell me the HTML code?开发者_开发百科You can use the following HTML snippet:

For pound (£) there is HTML code £.

For INR can you please tell me the HTML code?开发者_开发百科


You can use the following HTML snippet:

<p>Price &#x20b9; 9500 = &#x20b9; 9500</p>
<p>Price &#8377; 5500 = &#8377; 5500</p>
<p>Price &#8360; 500 = &#8360; 500</p>
<p>Price &#x20a8; 2000 = &#x20a8; 2000</p>


₹​ Indian rupee sign. HTML: &#8377; — ₹ or &#x20B9; — also ₹, corresponding to Unicode U+20B9.


Please try this -

INR (₹) sign HTML Code - &#x20B9;


The indian rupee sign is pretty new (introduced this July if I read it correctly) and doesn't even have a Unicode position yet, much less a HTML entity.

Even when it gets a Unicode position, it will probably still take years until it can be reliably used on a web page, because the client computers' Fonts will need to be updated accordingly. (I could imagine a font-face workaround with a custom font, though.)

Wikipedia uses an image file to display the symbol. It's far from good, but it may be the best workaround at the moment.

The generic rupee sign has three Unicode characters. See here.


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 &pound; you should use the character £.
  • For rupee there is no Unicode character. You can use a PNG file instead

    HTML code for INR

    . 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).


Use this for Indian rupee sign:

&#2352; — र


How about using fontawesome icon for Indian Rupee (INR).

Add font awesome CSS from CDN in the Head section of your HTML page:

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">

And then using the font like this:

<i class="fa fa-inr" aria-hidden="true"></i>


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));


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 &#x20a8; — ₨.


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


Use similar symbol: <del>&#2352;</del> =>

Try &#8377; => ₹

Use an image(bad solution but works): <img src="http://i.stack.imgur.com/nGbfO.png" width="8" height="10"> =>

HTML code for INR

Source: Empty rectanglar box is displayed instead of the rupee symbol in HTML


you can use => र ,but this is not professional way. I recommend that you should use fontawesome


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

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号