HTML5&CSS
HTML : label 태그 속성
코딩왕ll
2022. 5. 12. 10:48
728x90
[정의]
label 태그는 input 태그를 정의하기 위한 태그
해당 label이 설명하는 입력창이 활성화 또는 체크됨(text인경우 입력창 활성화, selectbox인 경우 체크가됨)
[형식]
<label for="id값">
- 함께 쓰이는 input 태그
- <input type="checkbox">
- <input type="color">
- <input type="date">
- <input type="datetime-local">
- <input type="email">
- <input type="file">
- <input type="month">
- <input type="number">
- <input type="password">
- <input type="radio">
- <input type="range">
- <input type="search">
- <input type="tel">
- <input type="text">
- <input type="time">
- <input type="url">
- <input type="week">
HTML input type="week"
W3Schools offers free online tutorials, references and exercises in all the major languages of the web. Covering popular subjects like HTML, CSS, JavaScript, Python, SQL, Java, and many, many more.
www.w3schools.com
[예시]
<label for="description">설명 </label>
<input type="text" id="description">
728x90