반응형
button태그
-
a태그와 button 그리고 inputHTML5_CSS3 2023. 5. 23. 11:38
a태그와 button 그리고 input 우리가 일반적으로 생각하는 버튼을 만들 수 있는 방법에는 3가지가 있다. a 태그 사용 button 태그 사용 input 태그 사용 프로젝트 제작 당시, 각각의 일반적인 개념을 갖고 있었지만 '키보드 tab처리를 해야되는 중요한 부분에는 a 태그로 처리해라' 라는 배움만을 생각해 대부분의 버튼 태그를 a 태그로 처리했었다🤔(사전과제 본 후 면접봤을 때도 이 부분에 대해 질문받음) 화면 자체로만 봤을 때는 문제가 되진 않겠지만, 하지만 중요한 것은 생긴 것보다는 ⭐어떤 역할을 하느냐가 중요하다는 것⭐ (시맨틱하게 마크업하기 위해서는 역할에 대해 생각하는 것이 중요하다) *해당 태그는 최소 44*44 권고* 📍a 태그 anchor 태그로 다른 페이지나 같은 페이지의 어..