HTML "textarea" tag

HTML "textarea" tag A textarea is a multi-line input field.

By default, you can resize a textarea input field by using drag and drop mechanism. To disable the drag and drop facility, use the following CSS code snippet.


textarea { 
  resize: none;
}

The textarea tag contains two attributes namely, rows and cols.

Example: <textarea rows="10" cols="20">Some text</textarea>
defines a textarea having 10 lines and 20 characters per line.

Comments

Popular posts from this blog

FTP, cURL and Linux Intro

Introduction to React.js | Props and Functional Components Advanced

Regular Expressions in JavaScript