728x90

[정의]

label 태그는 input 태그를 정의하기 위한 태그

해당 label이 설명하는 입력창이 활성화 또는 체크됨(text인경우 입력창 활성화, selectbox인 경우 체크가됨)

 

[형식]

<label for="id값">

 

- 함께 쓰이는 input 태그

 

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

+ Recent posts