예제
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | < html > < head > < meta charset = "utf-8" > </ head > < body > < h1 >색상</ h1 > < select name = "color" > < option value = "red" >붉은색</ option > < option value = "black" >검은색</ option > < option value = "blue" >파란색</ option > </ select > < h1 >색상2 (다중선택)</ h1 > < select name = "color2" multiple> < option value = "red" >붉은색</ option > < option value = "black" >검은색</ option > < option value = "blue" >파란색</ option > </ select > < input type = "submit" > </ form > </ body > </ html > |
예제
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | < html > < head > < meta charset = "utf-8" > </ head > < body > < p > < h1 >색상(단일선택)</ h1 > 붉은색 : < input type = "radio" name = "color" value = "red" > 검은색 : < input type = "radio" name = "color" value = "black" checked> 파란색 : < input type = "radio" name = "color" value = "blue" > </ p > < p > < h1 >사이즈(다중선택)</ h1 > 95 : < input type = "checkbox" name = "size" value = "95" > 100 : < input type = "checkbox" name = "size" value = "100" checked> 105 : < input type = "checkbox" name = "size" value = "105" checked> </ p > < input type = "submit" > </ form > </ body > </ html > |