<SPAN> Tag & its Attribute
HTML Tag <SPAN>
<SPAN> Defines an inline section of a document affected by Style Sheet attributes. Use <DIV> to apply styles at the block element level.
Attribute of <SPAN> Tag
CLASS
Indicates which style class applies to the <SPAN> element.
<SPAN CLASS="dkm">
Possible Values
Any Class Name.
DATAFLD
Selects a column from a previously identified source of tabular data (see the DATASRC= attribute).
<SPAN DATASRC="#data_table">
<SPAN DATAFLD="name"></SPAN>
</SPAN>
Possible Values
Data Field Name.
DATAFORMATAS
Indicates the format of tabular data within the <SPAN> element.
<SPAN DATAFORMATAS=HTML
DATASRC="#data_table">
Possible Values
TEXT, HTML, NONE
DATASRC
Specifies the source of data for data binding.
<SPAN DATASRC="#data_table">
Possible Values
Data Source name.
ID
<input type="text"><SPAN id="uname"> Entyer yor name here<SPAN>
<SPAN ID="uname">
Possible Values
Any ID Name.
STYLE
Specifies Style Sheet commands that apply to the contents within the <SPAN> tags.
<SPAN STYLE="background: red">
Possible Values
CSS Property with value.
TITLE
Specifies text assigned to the tag. You might use this attribute for context-sensitive help within the document. Browsers may use this to show tool tips.
<SPAN TITLE="Section"
STYLE="background: red">
Possible Values
Any Text Message.