Horje

How to set Default CSS Settings in HTML <sup> Tag

Most browsers will display the <sup> element with the following default values.

index.html
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>

Output should be:

How to set Default CSS Settings in HTML <sup> Tag




Type:
html
Category:
Web Tutorial
Sub Category:
HTML Tag
Uploaded by:
Admin