• 코드:
​x
 
1
<!DOCTYPE html>
2
<html lang="ko">
3
​
4
<head>
5
    <meta charset="UTF-8">
6
    <title>HTML Forms</title>
7
</head>
8
​
9
<body>
10
​
11
    <h1>체크박스</h1>
12
    <p>다음 중 재밌고 내용이 알찬 강좌를 모두 골라주세요.</p>
13
    <form>
14
        <input type="checkbox" name="lecture" value="html" checked> HTML <br>
15
        <input type="checkbox" name="lecture" value="css"> CSS <br>
16
        <input type="checkbox" name="lecture" value="java"> JAVA <br>
17
        <input type="checkbox" name="lecture" value="cpp" disabled> C++
18
    </form>
19
​
20
</body>
21
​
22
</html>