devxlogo

How to Make Text Wrap in HTML Forms

How to Make Text Wrap in HTML Forms

One common problem with typing into Web forms is dealing with

Apparently, many developers aren’t aware of the WRAP attribute. For some reason, the default is WRAP=OFF. Just make sure that WRAP=PHYSICAL and users will be able to type normally into your fields:

 

A WRAP=VIRTUAL argument also exists, but it doesn’t insert new lines as it’s supposed to. PHYSICAL and VIRTUAL behave identically at this point.

devx-admin

Share the Post: