Post
HTML
<div>
<textarea name="contents" id="" cols="30" rows="10" placeholder="글을 입력하세요"></textarea>
<input type="email" placeholder="이메일을 입력하세요." name="email"></div>
<div><input type="date" placeholder="날짜를 입력하세요." name="date"></div>
<button type="submit">확인</button>
<button type="reset">취소</button>
</div>
일반 text는 한줄 밖에 못쓰지만, textarea는 여러 줄을 많이 쓸 수 있다.
type에 email을 입력하면 email의 규칙(@)에 맞춰서 입력하게 할 수 있다. 그 밖에도 여러 정규 표현식이 있다.
type에 date를 입력하면 날짜 입력창이 뜨는데 이걸 datepicker라고 한다.
ON BROWSER

'HTML related' 카테고리의 다른 글
| HTML Open Graph (0) | 2023.01.19 |
|---|---|
| HTML Examples Dataset (0) | 2023.01.19 |
| HTML Examples Form#Select (0) | 2023.01.19 |
| HTML Examples Form#Checkbox (0) | 2023.01.19 |
| HTML Examples Form#ID | Password Input (0) | 2023.01.19 |