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

Is it possible to expect line breaks in text fields to become one of the general line break conventions or depends on the user OS?

ie: CR or CR + LF or LF

+3
source share
2 answers

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

+4
source

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

Environment.NewLine

in javascript this will be "/ n"

in VbScript you can use "vbNewLine"

0
source

Source: https://habr.com/ru/post/1710174/


All Articles