|
|
HTML <span> tag
Syntax
<span> - </span>
Definition and Usage
The SPAN element specifies an inline text container.
Standard Attributes
| id, class, title, style, dir, lang, xml:lang, tabindex |
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.
Example
| Source |
Output |
|
This is a text <span style="color:#FF00FF;"> within span
</span> and outside. |
This is a text within span and outside.
|
|
|