<input type="checkbox" id="user-agreement" />
<label for="user-agreement"> 동의하시겠습니까? </label>
체크박스에 id값으로 준 것에다가 label에서 for로 연결해준다.
또는 아래와 같이 label로 묶어 준다.
<label>
검색 <input type="search">
</label>
'Stack & Tool > HTML, CSS' 카테고리의 다른 글
자식 선택자. 헤깔릴 수 있는 부분 (>, 띄어쓰기, nth-child) (0) | 2021.05.19 |
---|---|
input과 button의 차이 / form, fieldset, legend, label 활용 / select, optgroup option (0) | 2021.05.19 |
5.19(수) (0) | 2021.05.19 |
srcset, sizes을 이용한 반응형 이미지 (0) | 2021.05.18 |
dfn, cite, code, kbd, sup, sub, time, del, ins (0) | 2021.05.18 |
댓글