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.

devxblackblue

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist