mozilla

Compare Revisions

:optional

Change Revisions

Revision 35641:

Revision 35641 by nimbupani on

Revision 35642:

Revision 35642 by teoli on

Title:
:optional
:optional
Slug:
CSS/:optional
CSS/:optional
Tags:
css, "CSS Reference", Selectors, NeedsMobileBrowserCompatibility
css, "CSS Reference", Selectors, NeedsMobileBrowserCompatibility
Content:

Revision 35641
Revision 35642
n8      {{ CSSRef() }}{{ gecko_minversion_header("2.0") }}n8      {{ CSSRef() }}
n14      The <code>:optional</code> CSS pseudo-class is applied auton14      The <code>:optional</code> CSS <a href="/en/CSS/Pseudo-clas
>matically to {{ HTMLElement("input") }}&nbsp;elements that do not>ses" title="Pseudo-classes">pseudo-class</a> represents any {{ HT
> have the {{ htmlattrxref("required","input") }} attribute set on>MLElement("input") }}&nbsp;element that do not have the {{ htmlat
> them. This allows forms to easily indicate optional fields.>trxref("required","input") }} attribute set on it. This allows fo
 >rms to easily indicate optional fields, and to style them accordi
 >ngly.
n17      You may use the {{ cssxref(":required") }} pseudo-class to n17      To provide an appearance for required form fields, the {{ c
>provide an appearance for required form fields.>ssxref(":required") }} pseudo-class may be used.
t75        <a class=" external" href="http://www.w3.org/TR/css3-ui/#t75        <a class="external" href="http://www.w3.org/TR/css3-ui/#p
>pseudo-required-value" title="http://www.w3.org/TR/css3-ui/#pseud>seudo-required-value" title="http://www.w3.org/TR/css3-ui/#pseudo
>o-required-value">CSS 3 Basic User Interface Module</a>>-required-value">CSS 3 Basic User Interface Module</a>

Back to History