• 코드:
​x
 
1
<!DOCTYPE html>
2
<html lang="ko">
3
​
4
<head>
5
    <meta charset="UTF-8">
6
    <title>CSS etc Selectors</title>
7
    <style>
8
        span { margin-left: 5px; }
9
        input { color: #FFEFD5; }
10
        input:not([type="password"]) { background-color: #CD853F; }
11
    </style>
12
</head>
13
​
14
<body>
15
​
16
    <h1>:not을 이용한 선택</h1>
17
    <form>
18
        사용자 : <br>
19
        <input type="text" name="username"><br>
20
        비밀번호 : <br>
21
        <input type="password" name="password"><br>
22
        주소 : <br>
23
        <input type="text" name="address">
24
    </form>
25
​
26
</body>
27
​
28
​
29
</html>