<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>속성 선택자</title>
<style>
input[type=text]{
background-color: aqua;
}
input[type=password]:focus{
background-color: cadetblue;
color: black;
}
button[type=submit]{
width: 100px;
}
button[type=reset]:hover{
background-color: tomato;
}
input[class=login]{
font-size: 20px;
}
</style>
</head>
<body>
<form>
<div>
<label for="id">사용자 ID</label>
<input type="text" id="id" name="id" class="login" placeholder="8자이상" required>
</div>
<div>
<label for="pw">사용자 PW</label>
<input type="password" id="pw" name="pw" class="login" placeholder="8자이상" required >
</div>
<div>
<label for="pin">사용자 PIN</label>
<input type="password" id="pin" name="pin" class="login" placeholder="숫자만" required >
</div>
<button type="button">일반버튼</button>
<button type="submit">전송버튼</button>
<button type="reset">작성취소</button>
</form>
</body>
</html>
'HTML.CSS.JS > css' 카테고리의 다른 글
[CSS] 폰트 속성 / 단위 (0) | 2023.04.06 |
---|---|
[CSS] 색상 사용 (0) | 2023.04.06 |
[CSS] css 규칙 (0) | 2023.04.06 |
[CSS] 스타일 시트 작성 방법 (0) | 2023.04.06 |
[CSS] margin 설정 (0) | 2023.04.06 |