#2.8 Form Tags

오주형·2022년 6월 26일
0

<input />

(⬇️attributes)

  • type="color", "password", "text", "submit" ...
  • placeholder="(입력)"
  • value="(입력)": value라는 attribute를 통해 버튼에 적혀있는 submit을 바꿀 수 있다. <input type="submit" value="Create Account" />
  • required: form을 validation 할 수 있다.
  • minlength="10": 최소한 10글자 이상 되어야 한다.
  • type="file"
  • accept=".pdf, image/*" : type이 file일 경우에만 사용 가능한 attribute. 특정 file의 유형들만 선택하게 끔 하는 기능을 제공한다.

<tagname attrname="attrvalue">content</tagname>
profile
곧 개발자

0개의 댓글