blob: 9c0899ad2b16b8fe9284cf41a369dc4295e7f381 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
<!DOCTYPE html>
<html>
<head>
<title>CSS level4 Selector :required and :optional</title>
<link rel="author" title="LEE YUN HEE" href="mailto:zzirasi@gmail.com">
<link rel="help" href="http://www.w3.org/TR/selectors4/#opt-pseudos">
<meta name="assert" content="You should see a green input box.">
<link rel="match" href="selector-required-ref.html">
<style>
input {border:3px solid red;}
:required {border-color:green;}
:optional {border-color:green;}
</style>
</head>
<body>
<p>
You should see a green input box.
</p>
<p>
<input required>
</p>
<p>
<input optional>
</p>
</body>
</html>
|