PDA

View Full Version : Infinity Sign in HTML?


NanoByte
10-29-1999, 11:20 PM
OK, how do I print an infinity sign on this board, which symbol is supposed to be encoded by &inf; or ∞ or ƥ ?

Ray

krish
10-29-1999, 11:25 PM
Your best bet is to find an image on the infinity sign and use that.

SterlingNorth
10-30-1999, 12:29 AM
Those types of characters probably won't show up in older browsers.

NanoByte
10-30-1999, 01:42 AM
What are "those types of characters"?

Ray

SterlingNorth
10-30-1999, 04:48 AM
IIRC, the Infinity character was introduced in the HTML 4.0 specification. As we all well know, the two major browsers, Netscape and Internet Explorer don't support HTML 4.0 completely! IE 5 comes closest, followed be IE4 and then Netscape 4.

Here is a test of extended HTML characters.
<hr>
&cent; £ &copy; Æ &oslash;

&infin; ∞ &spades; &piv; %#8240
<hr>
You should see the following characters:
cent (twice), Copyright, "AE", an o with a slash;

infinity (twice), a spade, pi, and 0/00

The cent and copyright should work with most browsers.

Some browsers use a "?" in place of the codes it couldn't understand, others will probably leave it blank, or display the code itself.


------------------
It is by the fortune of God that, in this country, we have three benefits: freedom of speech, freedom of thought, and the wisdom never to use either.
---Mark Twain

SterlingNorth
10-30-1999, 04:50 AM
Same as above, except using all number format.

Here is a test of extended HTML characters.
<hr>
&cent; £ &copy; Æ &oslash;

∞ ∞ ♠ &982; ‰
<hr>
You should see the following characters:
cent (twice), Copyright, "AE", an o with a slash;

infinity (twice), a spade, pi, and 0/00

The cent and copyright should work with most browsers.

Some browsers use a "?" in place of the codes it couldn't understand, others will probably leave it blank, or display the code itself.

SterlingNorth
10-30-1999, 04:51 AM
Same as above, except using all number format. (fixing #982)

Here is a test of extended HTML characters.
<hr>
&cent; £ &copy; Æ &oslash;

∞ ∞ ♠ ϖ ‰
<hr>
You should see the following characters:
cent (twice), Copyright, "AE", an o with a slash;

infinity (twice), a spade, pi, and 0/00

SterlingNorth
10-30-1999, 05:09 AM
Sorry, Tuba and Nano; this is taking longer than I thought.

Anyway, using the two browsers I have on my system here are the results.

IE 4 displayed all of the characters except the spade and the pi symbols.

Netscape 4.7 couldn't display the pi, the spade or the infinities. So krish's suggestion would be best.

tomndebb
10-30-1999, 10:12 AM
In each of your examples, my browser (IE 4.0 on Win95) showed

on the first line in each case:

cent, British-pound-sterling, copyright, capital ash, slashed "O" .

The second line showed

Ex 1: infinity, infinity, square, square, "%#8240" (stuff in quotes were run together, as shown)

Ex 2: infinity, infinity, square, square, 0/00 as a single character

Ex 3: infinity, infinity, square, "&982;", 0/00 as a single character


------------------
Tom~

SterlingNorth
10-30-1999, 03:32 PM
You should probably ignore the times a number showed up. That's when I f*cked up the code.

SterlingNorth
10-30-1999, 04:11 PM
New Test to determine if your browser supports mnemonic coding or numeric coding.

Line1
(C), (R), cent, AE, uppercase thorn,

Line2
Delta, [lowercase] pi, [uppercase] sigma, infinity, Club


Test #1 Mnemonic<hr>
&copy; &reg; &cent; &AElig; &THORN;
&Delta; &pi; &Sigma; &infin; &clubs; <hr>

Test #2 Numeric<hr>
© ® ¢ Æ ß
Δ π Σ ∞ ♣ <hr>

Hope it works.

NanoByte
10-31-1999, 12:19 AM
&amp;thorn;
&thorn;

&amp;#222;
Þ

&amp;#223;
ß

&amp;#254;
þ

NanoByte
10-31-1999, 12:24 AM
SN, I think you goofed on cap thorn; it's #222, not #223, which is German sharp 's'. [see my prior post here]

Ray

NanoByte
10-31-1999, 12:27 AM
&amp;THORN;
&THORN;

SterlingNorth
10-31-1999, 12:40 AM
Thanks, I misread my HTML book.

<font size=1>1500 pages of point 3 font will make you blind.</font>

NanoByte
10-31-1999, 12:42 AM
IE 5.0 showed the spade as well, in all trials.

Ray