Is there a standard for line break characters in web forms?
-
13-09-2019 - |
Question
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
Solution
The HTML 4.01 specification states that line breaks are represented as CR LF pairs.
OTHER TIPS
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"
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow