html 코드 모음
2021. 12. 17. 22:40ㆍ코딩공부/html
유용해보이는 html코드들을 모아보기로 했다.
<input type="checkbox"> : 체크박스 만들기(체크했다 안했다 가능)
<input type="button" value="버튼이름"> : '버튼이름'의 버튼 만들기
<input type="button" value-="버튼이름" onclick="alert('경고')"> : '버튼이름'의 버튼을 누르면 경고 알림창이 뜸
<input type="text" onchange="alert('changed')"> : 텍스트를 입력했을때 내용이 변경되면 changed 경고창이 뜬다
<input type="text" onkeydown="alert('key down!')"> : 텍스트를 입력했을때 키가 눌리면 key down! 경고창이 뜬다
'코딩공부 > html' 카테고리의 다른 글
html 9일차 - 코드의 힘 동영상 삽입 / 댓글 기능 추가 (0) | 2021.12.18 |
---|---|
html 8일차 - 수업을 마치며 (0) | 2021.12.17 |
html 7일차 - 웹서버 운영하기 / 웹서버 설치 / 웹서버와 http / 웹 서버와 웹브라우저의 통신 (0) | 2021.12.17 |
html 6일차 - 웹호스팅 (0) | 2021.12.16 |
html 5일차 - 웹사이트 완성 / 원시웹 / 인터넷을 여는 열쇠 : 서버와 클라이언트 (1) | 2021.12.15 |