HTML wrap Attribute: This attribute specifies how the text in a text area is to be wrapped when submitted in a form. This attribute can be applied to the <textarea> element.
HTML wrap Attribute
The HTML wrap attribute specifies how the text in a text area is to be wrapped when submitted in a form.
Browser Support:
The HTML wrap Attribute supports the following browsers:
- Firefox
- Chrome
- Internet Explorer
- Safari
- Opera
Example: for <textarea> element
<!DOCTYPE html> <html> <body> <form action="https://tutorials.freshersnow.com/"> <textarea rows="2" cols="20" name="usrtxt" wrap="hard"> freshersnow tutorials. </textarea> <input type="submit"> </form> </body> </html>
Output: