Defines the properties for a pre-defined text span element.
Browser/User Agent Support
| IE | Netscape | Mozilla | Opera | Safari |
|---|---|---|---|---|
| 3.0+ | 3.0+ | 1.0+ | 4.0+ | 1.0+ |
Example
This example sets the background color for all span elements to red:
span {
background-color: red;
}
Remarks
You will usually style individual span elements by assigning classes and id's to them and styling those. Assigning the same styles to all span elements usually is not very useful.


