Description

.value an element with the class attribute that contains value.
An element can have multiple classes seperated by spaces and a page can have the same class multiple times.

See also:

  • Id selector
  • Type selector
  • Universal selector
  • Attribute selector
  • Child selector
Live Example
Play with the code in the textarea below.

Introduced in CSS version
1
Inherited
N/A
Browser Support
BrowsersIEFirefoxSafariOperaChrome
Versionsfull 7, part 51260.2
Belongs to:

See the full list CSS properties and browser support: CSS Properties