For pound (£) there is HTML code £
.
For INR can you please tell me the HTML code?
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 ₨ — ₨.
Use this for Indian rupee sign:
र
— र
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));
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.
£
you should use the 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).
just add ₹ with semicolon where ever you want to display the rupee sign it worked for me
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.