Home Home -> HTML Reference -> Tag Reference - span

Tag Reference - span

Description

Attributes


class
The CSS style class to be applied to this tag. This could be used, for example, to create a style for "important" items, using a line in the style sheet as below:

.important { font-color: red }

This can be applied to the tag as follows:

<b class="important">This is important.</b>

datafld
In Internet Explorer 4 and above, this specifies the column name from the data source which supplies the data for this tag.

dataformatas
In Microsoft's implementation, this specifies whether to treat the data loaded from the data-source as HTML (which is then parsed) or plain text.

datasrc
In Internet Explorer 4 and above, this specifies the "id" of the data source object which will supply the data for this tag.

dir
Overrides the direction of the text from the standard direction. "rtl" displays the text from right to left, "ltr" from left to right.

id
A unique alphanumeric identifier used to identify this object/tag. This identifier can be used in scripting languages to refer to the tag or object.

lang
The language of the text enclosed by this tag, as defined in RFC 1766 (eg en-gb for British English).

language
In Microsoft's implementation, sets the language for the scripts defined in the tag's event handlers.

style
Inline style-sheet information.

title
Advisory text for this tag - this could define an abbreviation or acronym, explain where a link goes or provide some other useful description.