
The Complete Idiot's HTML Tag Reference
| Index
| Previous Tag: <SMALL>
| Next Tag: <STRIKE>
|
<SPAN>
Defines a section of the page to which a style should be applied.
Support:
-
Notes:
- This tag requires the </SPAN> end tag.
- See also the <DIV> tag.
Attributes:
- CLASS
= "Text"
The style sheet class used by the tag.
-
Support:
-
HTML Standard | Internet Explorer | Netscape Navigator |
4.0 and later |
3.0 and later |
4.0 and later |
Notes:
-
You can specify two or more classes; be sure to separate each class name with a space.
- ID
= "Text"
An alphanumeric string that uniquely identifies the tag.
-
Support:
-
HTML Standard | Internet Explorer | Netscape Navigator |
4.0 and later |
3.0 and later |
4.0 and later |
Notes:
-
Although you can use letters and numbers for the ID, the first character must be a letter.
- LANG
= "Text"
The language used by the tag's attribute values and text content.
-
Support:
-
HTML Standard | Internet Explorer | Netscape Navigator |
4.0 and later |
4.0 and later |
Not supported |
- STYLE
= "Text"
The style or styles to use with the tag.
-
Support:
-
HTML Standard | Internet Explorer | Netscape Navigator |
4.0 and later |
3.0 and later |
4.0 and later |
Notes:
-
If you enter multiple style properties, separate each one with a semi-colon (;).
Example:
Regular text. <SPAN STYLE="font-size: 16pt">Styled text.</SPAN>
How It Looks:
- Regular text. Styled text.
| Index
| Previous Tag: <SMALL>
| Next Tag: <STRIKE>
|
|