CSS3 :required Selector

Last Updated Jul 21, 2015, 12:00:06 PM





CSS3 :required Selector

CSS :required selector selects form elements which are required.

Syntax

Example

Select and style only if the <input> element has a "required" attribute:


Try It Now

CSS Selectors Reference

CSS Selectors Reference

Other CSS Selectors you might want to learn

CSS Basic Selectors

CSS Combinators



Sources and Credits

The source of the content has been referred and updated with Mozilla Foundation and W3C Organization

Last Updated Jul 21, 2015, 12:00:06 PM








.