Search code examples
newlineweb-standardscarriage-return

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


Solution

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