HTML <textarea> cols- Attribut
Beispiel
Ein Textbereich mit einer bestimmten Höhe und Breite:
<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>
Definition und Verwendung
Das cols
Attribut gibt die sichtbare Breite eines Textbereichs an.
Tipp: Die Größe eines Textbereichs kann auch über die CSS-Eigenschaften height und width eingestellt werden.
Browser-Unterstützung
Attribute | |||||
---|---|---|---|---|---|
cols | Yes | Yes | Yes | Yes | Yes |
Syntax
<textarea cols="number">
Attributwerte
Value | Description |
---|---|
number | Specifies the width of the text area (in average character width). Default value is 20 |
❮ HTML-<textarea>-Tag