[13] 04/04 웹개발 수업

Noh Sinyoung·2023년 4월 4일
0

form 2

label 과 input 태그를 다른줄에 적을때

<label for="연결">숫자 입력</label>
<input type="text" name="" id="연결">

for과 id가 동일해야함

숫자

<label for="">숫자 입력 <input type="number" name="" id=""></label>

슬라이드

<label for="">슬라이드 <input type="range" min="120" max="200" step="10"></label>

파일

<label for="">파일 <input type="file" name="" id=""></label>

연도-월-일

<label for="">연도-월-일 <input type="date" name="" id=""></label>
<label for="">연도-월 <input type="month" name="" id=""></label>

input 태그 안에 required 태그를 넣으면 필수입력

select

<select name="select-option">
            <option value="no0">선택하세요</option>
            <option value="no1">1번</option>
            <option value="no2">2번</option>
            <option value="no3">3번</option>
            <option value="no4">4번</option>
 </select>

0개의 댓글