HTML <tt> <i> <b> <big> <small> tags
Definition and Usage
The following elements are all font style elements. They are not deprecated, but
it is possible to achieve richer effects using style sheets.
| <tt> |
Renders as teletype or mono spaced text |
| <i> |
Renders as italic text |
| <b> |
Renders as bold text |
| <big> |
Renders as bigger text |
| <small> |
Renders as smaller text |
Differences Between HTML and XHTML
NONE
Example
| Source |
Output |
<tt>Teletype text</tt><br />
<i>Italic text</i><br />
<b>Bold text</b><br />
<big>Big text</big><br />
<small>Small text</small><br />
|
Teletype text
Italic text
Bold text
Big text
Small text
|
Standard Attributes
| id, class, title, style, dir, lang |
For a full description, go to Standard
Attributes.
Event Attributes
| onclick, ondblclick, onmousedown, onmouseup, onmouseover, onmousemove, onmouseout, onkeypress, onkeydown onkeyup |
For a full description, go to Event
Attributes.
Try-It-Yourself Demos
Text
formatting
This example demonstrates how you can format text in a document.
|