The textarea field can be resized when you drag the resizer at the bottom right corner in any direction. To prevent resizing horizontally, vertically or in both directions, we can use the resize
property.
Default value for this property is both which allows resizing in both vertical and horizontal direction. Other accepted values are horizontal, vertical, and none.