The Show
It accepts an unlimited number of characters. Textareas will create scrollbars when the text becomes too large. Example#A
Using <textarea>The This element accepts an unlimited number of characters and line breaks. By default, the textarea will create scrollbars when the text becomes too large. The Textareas honor spaces and line-breaks. They will format text as provided (see example below). More Examples A Textareas honor spaces and line-breaks. You can see this by how the text inside the textarea indents and wraps the same as specified in the HTML.
Attributes for <textarea>This table lists the
For additional global attributes see our global attributes list. Obsolete AttributesDo not use the attribute listed below. It is not standardized in HTML5.
More ExamplesTextarea with maxlength# A
Textarea with placeholder# A
Disabled textarea# A
Did you know?Disabling line break (enter key) in a textareaBy default, the With JavaScript users can be prevented from using the enter key to add a line break. Type some text in the
Form Tags The Here is a list of form tags
Browser supportHere is when
You may also like
Earn income with your HTML skills Sign up and we'll send you the best freelance opportunities straight to your inbox.
On this page
Apa itu textarea pada HTML?Objek form textarea digunakan untuk membuat text inputan yang bisa menampung lebih dari 1 baris inputan. Tag textarea mirip dengan tag input type text, namun memiliki kelebihan untuk menampung beberapa baris. Biasanya textarea digunakan untuk inputan yang panjang, seperti komentar, keterangan, atau catatan.
Apa HTML yang benar untuk membuat text area?HTML element tag <textarea> merupakan tag pada HTML yang digunakan untuk menciptakan input dalam bentuk area teks dengan jumlah karakter yang tidak dibatasi.
|