<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.




CCC Online Test 2021 CCC Practice Test Hindi Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Best Java Training Institute in Prayagraj (Allahabad) Best Python Training Institute in Prayagraj (Allahabad) O Level Online Test in Hindi Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Sarkari Naukari Notification Best Website and Software Company in Allahabad Sarkari Exam Quiz