HTML code for INR

Viewed 149631

For pound (£) there is HTML code £.

For INR can you please tell me the HTML code?

13 Answers

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

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

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

Related