What is the use of SUP tag in CSS?

What is the use of SUP tag in CSS?

The tag defines superscript text. Superscript text appears half a character above the normal line, and is sometimes rendered in a smaller font. Superscript text can be used for footnotes, like WWW. Tip: Use the tag to define subscript text.

How do you write superscript in CSS?

In HTML, there is the use of and tags to define the subscript and superscript text. The superscript text appears in a smaller font and the half character above the normal line. It is generally used to write mathematical equations (like x2 + y2 = r2), footnotes, and many more.

What is SUP code?

: The Superscript element The HTML element specifies inline text which is to be displayed as superscript for solely typographical reasons. Superscripts are usually rendered with a raised baseline using smaller text.

Is sup a semantic tag?

The script is used to identify text that should appear in a superscript position relative to the surrounding text. Use the element for it’s semantic meaning, rather than for it’s styling. If all you want to do is make a character appear superscript for stylistic purposes, CSS is the right tool for the job.

What is SUP tag in HTML with example?

The HTML tag defines superscript text in an HTML document. For example, when dealing with an area value such as 36 ft2, the number 2 is rendered as superscript. This superscript text has a smaller font and appears with a raised baseline. This tag is also commonly referred to as the element.

What is superscript example?

Superscript is the small letter / number above a particular letter / number. An example of superscript is 25. The number 5 above the number 2 is an example of superscript. Superscript can be used for exponents in mathematics.

How do you code a subscript?

The tag defines the subscript text. Subscript text appears half a character below the normal line and is sometimes rendered in a smaller font. Subscript text can be used for chemical formulas, like H2O to be written as H2O.

How do you code a subscript in HTML?

: The Subscript element. The HTML element specifies inline text which should be displayed as subscript for solely typographical reasons. Subscripts are typically rendered with a lowered baseline using smaller text.

What is sub tag used for?

What is the use of sub and sup tag explain with example?

The tag defines the subscript text. Subscript text appears half a character below the normal line and is sometimes rendered in a smaller font. Subscript text can be used for chemical formulas, like H2O to be written as H2O. Superscript: The tag is used to add a superscript text to the HTML document.

What is subscript tag?

The tag defines subscript text. Subscript text appears half a character below the normal line, and is sometimes rendered in a smaller font. Subscript text can be used for chemical formulas, like H2O.