Alex S
Alex S

Reputation: 26051

Is there a standard for line break characters in web forms?

Can I expect line breaks in text boxes to be one of the common line break conventions or does it depend on the user's OS?

i.e.: CR or CR+LF or LF

Upvotes: 3

Views: 2656

Answers (2)

Stan R.
Stan R.

Reputation: 16065

it depends on the language. usually in .NET you would use

Environment.NewLine

in JavaScript it would be "/n"

in VbScript you could use "vbNewLine"

Upvotes: 0

Steve Madsen
Steve Madsen

Reputation: 13791

The HTML 4.01 specification states that line breaks are represented as CR LF pairs.

Upvotes: 4

Related Questions