<SPAN>...</SPAN>
Description
This element is used to create a structure in a document. By using this element
you can give a part of the document a name, or apply style sheet information to
the part.
The difference between this element and the
DIV element is that the span element works inline,
and the div element creates block-level content. With block-level content, most
browsers surround the block by whitespace, starting at a new line.
Attributes
Core attributes:
class
id
style
title
Internationalization attributes:
dir
lang
Events:
onclick
ondblclick
onmousedown
onmouseup
onmouseover
onmousemove
onmouseout
onkeypress
onkeydown
onkeyup
Examples
 |
In the next lines the color and fontsizes of the text
has been set with style sheet elements:<BR>
<SPAN style="color: white">This line uses white text</SPAN><BR>
<SPAN style="font-size: 20pt">This is a font size of 20 points</SPAN>
|
| |
 |
In the next lines the color and fontsizes of the text
has been set with style sheet elements:
This line uses white text
This is a font size of 20 points
|