How can I display an infinity symbol using html?
win for simplicity. thanks for all the help!
2010-02-12 22:46:16
A:
According to List of XML and HTML character entity references:
∞
Next time, try Google. The Google search using your original question gets several useful results: How can I display an infinity symbol using html.
artlung
2010-02-12 20:32:55
Google is not a valid answer. If you hadn't also included the right answer, I'd -1 this.
Macha
2010-02-12 21:17:36
Google **is** absolutely a valid answer. Google "infinity symbol entity" -- http://www.google.com/search?q=infinity+symbol+entity -- and see the results. The answer is there in the first results. If you feel my answer deserves a downvote, feel free to downvote my answer.
artlung
2010-02-12 22:11:27
I go to stackoverflow because when I want to show an infinity symbol, I don't know that I need to search for an "entity".read yehuda katz's "the blind men and the noobs".
2010-02-12 22:45:42
http://www.google.com/search?q=How+can+I+display+an+infinity+symbol+using+html gets a good result. I'm glad you learned what a character entity is today.
artlung
2010-02-12 23:32:42
+9
A:
You can use the following:
- literal:
∞
(if the encoding you use can encode it — UTF-8 can, for example) - character reference:
∞
(decimal),∞
(hexadecimal) - entity reference:
∞
But whether it is displayed correctly does also depend on the font the text is displayed with.
Gumbo
2010-02-12 20:33:26
+1 for mentioning the font-dependence. This is often overlooked in case of "unicode characters".
BalusC
2010-02-12 21:02:14
+8
A:
∞
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.
Matthew Flaschen
2010-02-12 20:35:31
Curious: since I don't have a ∞ on my keyboard, would I always have to copy/paste the previous ∞? How do you get it there the first time? I find it easier and faster to type `∞`, but if there's a faster way to get this on to the screen with just a plain ol' keyboard, please share
FrustratedWithFormsDesigner
2010-02-12 21:00:01
The “Typing Special Characters” section here might help: http://www.xvsxp.com/misc/keyboard.php
Paul D. Waite
2010-02-12 21:07:18
I'm aware of the character maps, but I'm a fast typist and having to toggle to a UI and then back to the editor slows me down. I can still type `∞` faster.
FrustratedWithFormsDesigner
2010-02-12 21:14:18
I don't think there's a default key for infinity. However, like anything else you can set up a key shortcut. Jonas Kölker recommended Compose+1/0 (http://stackoverflow.com/questions/311244/keyboard-layout-for-international-programmers/662389#662389)
Matthew Flaschen
2010-02-12 21:33:14
What's your environment? On the Mac, it's option-5. In GTK+, it's C-S-u 2 2 1 E. On Windows, it's ALT 2 3 6 (keypad). A good text editor will also have a way to define an abbrev for it.
Ken
2010-02-14 00:19:39