폼의 주요 컨트롤들 설명
추천 자료: ASP.NET Core 인증 및 권한 부여
폼의 주요 컨트롤들 설명
HTML 폼 태그에서 사용되는 주요 컨트롤들을 하나씩 만들고 모양을 살펴봅니다.
코드: FormControls.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>폼 컨트롤들</title>
</head>
<body>
<form>
<fieldset>
<legend>폼의 범례</legend>
<h3>텍스트 상자</h3>
<label>Single Line: <input type="text" placeholder="데이터 입력" /></label>
<label>Password: <input type="password" /></label>
<label>Multi Line: <textarea rows="3"></textarea></label>
<h3>체크박스(다중선택)와 라디오버튼(단일선택)</h3>
<label><input type="checkbox" checked="checked" /> 체크박스 1</label>
<label><input type="checkbox" /> 체크박스 2</label>
<label><input type="radio" name="optData" id="optData1" /> 라디오버튼1</label>
<label>
<input type="radio" name="optData" id="optData2" checked="메롱" />
라디오버튼2
</label>
<h3>드롭다운리스트(콤보박스(단일선택)), 리스트박스(다중선택)</h3>
<h4>드롭다운리스트</h4>
<select>
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
</select>
<h4>리스트박스</h4>
<select multiple="multiple">
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
</select>
<h3>도움말</h3>
<input type="text" name="txtHelp" value=" " /><span>인라인 도움말</span>
<h3>유효성 검사</h3>
<input type="email" required="required" />
</fieldset>
</form>
</body>
</html>
폼의 주요 컨트롤들 설명 강의
추천 자료: .NET Blazor에 대해 알아보시겠어요? .NET Blazor 알아보기를 확인해보세요!