The value of attribute wrap in textarea in html

in a project created with eclipse, there is a web page that uses the tag textarea, uses the attribute value wrap, and assigns the value "off",
but eclipse prompts undefined attribute value (off), but still works. What is the reason for this?

Mar.25,2021

The

wrap attribute is not part of the html5 standard, so there is no problem with eclipse reporting errors, but in fact many browsers support this attribute, so it works. If you want a standard solution, it should be set up like this with css, which can achieve the effect that wrap is off

textarea {
  white-space: pre;
  overflow-wrap: normal;
  overflow-x: scroll;
}
Menu