{"id":14174,"date":"2011-09-06T19:56:04","date_gmt":"2011-09-07T02:56:04","guid":{"rendered":"http:\/\/css-tricks.com\/?page_id=14174"},"modified":"2020-09-28T07:30:51","modified_gmt":"2020-09-28T14:30:51","slug":"default","status":"publish","type":"page","link":"https:\/\/css-tricks.com\/almanac\/selectors\/d\/default\/","title":{"rendered":":default"},"content":{"rendered":"

The :default<\/code> pseudo selector will match the default in a group of associated elements, such as the radio button in a group of buttons that is selected by default, even if the user has selected a different value.<\/p>\n

input[type=\"radio\"]:default + label:after {\n   content: ' (default)';\n   color: #999;\n   font-style: italic;\n}<\/code><\/pre>\n

The CSS above targets the label coming immediately after the default selected radio button in a group of radio buttons:<\/p>\n

<\/code><\/pre>\n