mozilla

Compare Revisions

:invalid

Change Revisions

Revision 334489:

Revision 334489 by Inkbug on

Revision 334491:

Revision 334491 by Inkbug on

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

Revision 334489
Revision 334491
n44    <h2 id="Examples">n44    <h2 id="Example" name="Example">
45      Examples45      Example
n50    <h2 name="Example">n50    <h3 id="HTML_Content">
51      Example
52    </h2>
53    <h3>
n66    <h3>n63    <h3 id="CSS_Content">
t85    </p>t
86    <pre class="brush: html">
87&lt;style type="text/css"&gt;
88  :invalid {
89    background-color: #ffdddd;
90  }
91  
92  :valid {
93    background-color: #ddffdd;
94  }
95  
96  :required {
97    border-color: #800000;
98    border-width: 3px;
99  }
100&lt;/style&gt;
101 
102&lt;form&gt;
103  &lt;label&gt;Enter a URL:&lt;/label&gt;
104  &lt;input type="url" /&gt;
105  &lt;br /&gt;
106  &lt;br /&gt;
107  &lt;label&gt;Enter an email address:&lt;/label&gt;
108  &lt;input type="email" required/&gt;
109&lt;/form&gt;
110</pre>
111    <p>
112      <a href="/samples/cssref/input-validation.html" title="http
>s://developer.mozilla.org/samples/cssref/input-validation.html">V 
>iew this sample live</a>. 

Back to History