Search

0402_체크박스

대분류
HTML4 폼
소분류
HTML4
개념
<!DOCTYPE html> <html lang="ko"> <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> <h1>체크박스 예제</h1> <form> 과일 선택: <input type="checkbox">Apple <input type="checkbox">Grape <input type="checkbox">Orange <h1>체크박스 예제(미리 선택해놓기)</h1> 과목 선택: <input type="checkbox" checked >국어 <input type="checkbox" >수학 <input type="checkbox">영어 </form> </body> </html>
HTML
복사