|
Definition and UsageThe Tip: Use the <sub> tag to define subscript text. Browser Support
Global AttributesThe Event AttributesThe |
<!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.
<!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 |
Type: | Develop |
Category: | Web Tutorial |
Sub Category: | HTML Tag |
Uploaded by: | Admin |
Read Articlehttps://develop.horje.com/learn/1434/reference