CSS :default Selector

❮ Previous Selectors Next ❯

Example

.example:default {
  height: 25px;
  width: 25px;
}

Meaning

The :default selector selects the elements that are the default among a set of similar elements.

A default option element is the first one with the selected attribute, or the first enabled option in DOM order.

Version: CSS3




Standard Syntax

:default {
  css declarations;
}



Browser Support

The numbers in the table specify the first browser version that fully supports the property.




Status







❮ Previous Selectors Next ❯