HTML text formatting tag
Tag | Description |
Define bold text | |
Rendered as highlighted text | |
< ;i> | define italic text |
define small text | |
define important text | |
Define subscript | |
define superscript word | |
define insertion word | |
define deletion word |
Usual tags Replace the bold tag with with the tag. However, the meanings of these tags are different: and define bold or italic text. or means that the text you are presenting is important, so highlight it. All major browsers today can render fonts in a variety of effects. However, future browsers may support better rendering. Text code example:
<html> <body> <b>This text is bold</b> <br /> <strong>This text is strong</strong> <br /> <big>This text is big</big> <br /> <em>This text is emphasized</em> <br /> <i>This text is italic</i> <br /> <small>This text is small</small> <br /> This text contains <sub>subscript</sub> <br /> This text contains <sup>superscript</sup> </body> </html>
Default text
This example demonstrates how to use the pre tag to control empty lines and spaces</p><div class="code" style="position:relative; padding:0px; margin:0px;"><pre class="brush:html;toolbar:false"><!DOCTYPE html> <html> <body> <pre class="brush:php;toolbar:false"> Text in a pre element is displayed in a fixed-width font, and it preserves both spaces and line breaks