HTML <textarea> 속성

❮ HTML <텍스트 영역> 태그

예시

지정된 높이와 너비의 텍스트 영역:

<textarea rows="4" cols="50">
At w3schools.com you will learn how to make a website. We offer free tutorials in all web development technologies.
</textarea>

정의 및 사용

cols속성은 텍스트 영역의 가시적 너비를 지정합니다 .

팁: 텍스트 영역의 크기는 CSS 높이 및 너비 속성으로 설정할 수도 있습니다.


브라우저 지원

Attribute
cols Yes Yes Yes Yes Yes

통사론

<textarea cols="number">

속성 값

Value Description
number Specifies the width of the text area (in average character width). Default value is 20

❮ HTML <텍스트 영역> 태그