input과 버튼 표시하기
Coddy의 DOM 프로젝트 - 계산기 코스 레슨 — 14개 중 3번째.
disabled 속성은 사용자가 특정 입력 필드와 상호 작용할 수 있는지 여부를 제어하는 데 사용되며, 폼의 적절한 흐름과 데이터 무결성을 보장합니다.
예시:
<input type="password" name="title" disabled>챌린지
쉬움- "calculator" 내부에 type 속성이 text이고 ID가 display인 input 태그를 생성하세요. 또한, disabled로 만드세요.
- input 아래에 클래스 이름이 'buttons'인 div를 생성하세요.
직접 해보기
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<!-- Write HTML code here -->
<script src="script.js"></script>
</body>
</html>