HTML CSS Reference/HTML Attributes Reference/cols textarea
Версия от 12:21, 26 мая 2010; (обсуждение)
"cols" Example
<source lang="html4strict">
<HTML> <head><Title>Example For cols</Title></head> <BODY> <textarea cols="10" rows="10"> This is a sample text containing more than the 10 characters specified. </textarea> <textarea cols="10" rows="10">1234567890</textarea> </BODY> </HTML>
</source>
cols is applied to
<source lang="html4strict">
+----------------+--------------------------------------------------------------+
| Applied_To |(NN4 only) <textarea> | +----------------+--------------------------------------------------------------+ </source>"cols" Syntax and Note
<source lang="html4strict">Note:
It specifies the maximum number of characters that can fit on a single line of a <pre> or <textarea> element. In the <textarea> element, the width of the element will be set to the number of cols specified.
Syntax:
<element cols="value"> . . . </element>
</source>