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?
![]()
You can use the following:
∞ (if the encoding you use can encode it — UTF-8 can, for example)∞ (decimal), ∞ (hexadecimal)∞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.
Infinity is a reserved character in HTML. Following are its values in various forms.
To use in html code
<p>The html symbol is ∞ </p>
<p>The html symbol is ∞ </p>
<p>The html symbol is ∞ </p>
Reference : HTML Symbols - HTML Infinity Symbol