-
input 태그 속성!웹개발 공부/태그 2017. 4. 24. 17:07
-------------------------------------------------------------------------------
2017 - 04 - 24 - 월요일
-------------------------------------------------------------------------------
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>Untitled Document</title>
</head>
<body>
<input type="text" placeholder="123" value="">
<input readonly type="text" placeholder="123" value="111">
</body>
</html>
결과
<input type="text" placeholder="123" value=""> placeholder는 value값이 아니고 일방적으로 들어있는것!!
<input readonly type="text" placeholder="123" value="111">
readonly효과로 인해서 읽기만 가능함. 여기를 클릭해봤자 소용없다.