티스토리 뷰

Web/HTML

HTML Label 연습

고기상추밥 2018. 12. 4. 23:16

 
코드
<!DOCTYPE html>
<html>
    <head>
<meta charset="utf-8">
    </head>
    <body>
        <form action="">
            <p>           
                <label>
                    <input type="checkbox" name="color" value="red"> 붉은색
                </label>
            </p>
            <p>       
                <input id="color_blue" type="checkbox" name="color" value="blue">
                <label for="color_blue">파랑색</label>
            </p>
            <p>
                <label for="id_txt">텍스트 : </label>
                <input id="id_txt" type="text" name="txt">
            </p>
            <p>
                <label for="id_txt2"> 텍스트2 :
                    <input id="id_txt2" type="text" name="txt">
                </label>
            </p>
            <input type="submit" value="Submit">
        </form>
    </body>
</html>


'Web > HTML' 카테고리의 다른 글

HTML 앵귤러7 가위바위보  (0) 2019.04.02
HTML method  (0) 2018.12.04
HTML 버튼 & Hidden  (0) 2018.12.04
HTML 라디오 & 체크박스  (0) 2018.12.04
HTML 입력과 드랍다운  (0) 2018.12.04
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2025/01   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
글 보관함