HTML <textarea> 랩 속성
예시
wrap="hard"가 있는 텍스트 영역의 텍스트는 양식으로 제출할 때 개행(있는 경우)을 포함합니다.
<textarea rows="2" cols="20" wrap="hard">
At W3Schools you will find free Web-building tutorials.
</textarea>
정의 및 사용
이 wrap
속성은 양식으로 제출될 때 텍스트 영역의 텍스트가 줄 바꿈되는 방식을 지정합니다.
브라우저 지원
Attribute | |||||
---|---|---|---|---|---|
wrap | Yes | Yes | Yes | Yes | Yes |
통사론
<textarea wrap="soft|hard">
속성 값
Value | Description |
---|---|
soft | The text in the textarea is not wrapped when submitted in a form. This is default |
hard | The text in the textarea is wrapped (contains newlines) when submitted in a form. When "hard" is used, the cols attribute must be specified |
❮ HTML <텍스트 영역> 태그