Jump to content

how to make maths terms as it is in html


lak

Recommended Posts

There are <sup> and <sub> tags, so you can have
A<sup>2</sup>

Another way to output the superscript 2 symbol (and other symbols) is to use HTML entities:
& sup2;

NOTE There should not be a space after the "&". That's just what I had to do to make the code post here. If you look at the HTML entities reference you'll see there's no space really.

Link to comment
Share on other sites

Why not test it then? Yup, works just fine. ⊃ and ² are the same things, in function at least. It's more or less that the shorthand is ⊃ because most commonly you'd be doing things in math, particularly algebra, with 2nd degrees. ³ is for 3rd degree expressions and such. ⊃ and ² have different entity numbers and names, even though both serve the same purpose.http://webref.info/?ID=12105http://webref.info/?ID=12055

Link to comment
Share on other sites

Why not test it then? Yup, works just fine. ⊃ and ² are the same things, in function at least. It's more or less that the shorthand is ⊃ because most commonly you'd be doing things in math, particularly algebra, with 2nd degrees. ³ is for 3rd degree expressions and such. ⊃ and ² have different entity numbers and names, even though both serve the same purpose.http://webref.info/?ID=12105http://webref.info/?ID=12055
I find it strange that you say that, because according to your links, they are not the same thing at all! The one without a 2 doesn't render a superscript 2, but instead renders a "superset of" symbol:

Link to comment
Share on other sites

Hmm! Browser differences or encoding problems?
:) what does your browser/encoding produce then, when you view the above links?When I view http://webref.info/?ID=12055, my browser displays an info page with the text "Superscript 2", in the category "Numbering Characters". When I view http://webref.info/?ID=12105, my browser displays an info page with the text "Superset Of", in the category "Advanced Mathematical Symbols".Is there another reference, that really does show & sup being superscript 2? It would be nice to get a definitive answer on this.
Link to comment
Share on other sites

Why not test it then? Yup, works just fine. ⊃ and ² are the same things, in function at least.
I find it strange that you say that, because according to your links, they are not the same thing at all!
Proper reading of my posts is much appreciated. I even said they were different entities...
Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...