본문으로 바로가기

 

 

<button>기본적으로 Submit 기능 있음</button>

 

<button type="button">버튼 역할 함</button> 

 

<button type="reset">form 내부 입력값 초기화</button>

 

---------------------------------------------------------------------------------------

 

 

<button> , <input type="button"> , <a> 태그중 머가 좋을까?

 

일반적으로 <button> 태그가 좋다

- 내부에 다양한 HTML 요소를 넣을 수 있어 디자인이나 기능 확장에 유리

<button>
  <img src="icon.png" alt="아이콘">
  저장
</button>