Most browsers will display the
<sub>
element with the following default values.
Example:
HTML
<!DOCTYPE html>
<html>
<head>
<style>
sub { vertical-align: sub; font-size: smaller;
}
</style>
</head>
<body>
<p>A sub element is displayed like this:</p>
<p>This text contains <sub>subscript text</sub></p>
<p>Change the default CSS settings to see the effect.</p>
</body>
</html>
How to create HTML <sub> Tag | HTML Tag |
How to set Default CSS Settings in HTML <sub> Tag | HTML Tag |
Type
: |
html |
Category
: |
Web Tutorial |
Sub Category
: |
HTML Tag |
Uploaded by
: |
Admin |