프론트엔드/HTML
HTML 26 <input type="checkbox"> 태그로 체크 박스 만들기
스펀지연구소
2021. 3. 19. 13:25
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<form>
취미 : <input type="checkbox" name="hobby1">등산
<input type="checkbox" name="hobby2" checked>독서
<input type="checkbox" name="hobby3">영화감상
<input type="checkbox" name="hobby3">음악감상
</form>
</body>
</html>