How can I display an infinity symbol (like the one in the picture) using HTML?
![]()
|
How can I display an infinity symbol (like the one in the picture) using HTML?
|
|||||||||
|
|
Use the HTML entity |
|||||||||
|
|
You can use the following:
But whether it is displayed correctly does also depend on the font the text is displayed with. |
|||||
|
|
∞ This does not require a HTML entity if you are using a modern encoding (such as UTF-8). And if you're not already, you probably should be. |
|||||||||||||||||||||
|
|
From Wikipedia:
|
|||
|
|
|
According to List of XML and HTML character entity references:
|
|||||||||
|
|
∞ |
|||
|
|
|
According to this page, it's |
|||||
|
|
Like ЯegDwight said, you can use the HTML entity You can also use them in CSS, which was what I was looking for, just like font-awesome does. A simple CSS based solution would be to have something like:
|
|||
|
|