subscript superscript and strike
Subscript and superscript are used in mathematical calculations where we use powers and bases.
for Example:Logarithms.
It is represented by <sub>.
not yet available! now available!The strike element is not supported in HTML5. Use CSS instead.
for Example:Logarithms.
It is represented by <sub>.
Subscript:
<!DOCTYPE html>
<html>
<body>
<p>This is <sub>subscripted</sub> text.</p>
</body>
</html>
Output:
This is subscripted text.
Superscript:
<!DOCTYPE html>
<html>
<body>
<p>This is <sup>superscripted</sup> text.</p>
</body>
</html>
Output:
This is superscripted text.
Strike:
This is not supported by html5. We can use <s> or <del> instead of this <strike>.
<!DOCTYPE html>
<html>
<body>
<strike>not yet available!</strike> now available!
<p>The strike element is not supported in HTML5. Use CSS instead.</p>
</body>
</html>
Output:
Comments
Post a Comment