![]() |
Definition and UsageThe Tip: Use the <sub> tag to define subscript text. Browser SupportGlobal AttributesThe Event AttributesThe |
Example:
HTML
<!DOCTYPE html>
<html>
<body>
<h1>The sub and sup elements</h1>
<p>This text contains <sub>subscript</sub> text.</p>
<p>This text contains <sup>superscript</sup> text.</p>
</body>
</html>
Most browsers will display the <sup>
element with the following default values.
Example:
HTML
<!DOCTYPE html>
<html>
<head>
<style>
sup {
vertical-align: super;
font-size: smaller;
}
</style>
</head>
<body>
<p>A sup element is displayed like this:</p>
<p>This text contains <sup>superscript text</sup></p>
<p>Change the default CSS settings to see the effect.</p>
</body>
</html>
html sup |
How to create HTML <sup> Tag | HTML Tag |
How to set Default CSS Settings in HTML <sup> Tag | HTML Tag |
Read Full: | HTML Tag |
Type: | Develop |
Category: | Web Tutorial |
Sub Category: | HTML Tag |
Uploaded: | 3 months ago |
Uploaded by: | Admin |
Views: | 89 |
Reffered: https://www.w3schools.com/tags/tag_sup.asp