Submitted value
What does a textarea submit?
A textarea sends its current text under its name, line breaks included as CRLF; an empty textarea still sends name with an empty value.
| Case | What is sent |
|---|---|
| Typed line breaks | Each line break is sent as CRLF, %0D%0A in URL-encoded form |
wrap="soft" (the default) | The text as typed, with no extra line breaks added at the visual wrap points |
wrap="hard" with cols | A line break is inserted at each point where the text wraps |
| Empty textarea | message= — the name is sent with an empty value |
disabled | Nothing: a disabled control is left out of the form data |
readonly | Its text, unchanged: a readonly control is still submitted |
First newline right after <textarea> | Dropped by the parser, so it never reaches the submitted value |
The HTML Standard normalises every line break in the value to CRLF before the form data is built, so a textarea always submits \r\n even when the visitor's system uses \n.