Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The <a href="http://w3c.github.io/html/sec-forms.html#the-placeholder-attribute" rel="nofollow noreferrer">specification</a> does not allow line feed or carriage return characters.</p> <blockquote> <p>The placeholder attribute represents a short hint (a word or short phrase) intended to aid the user with data entry. A hint could be a sample value or a brief description of the expected format. The attribute, if specified, must have a value that contains no U+000A LINE FEED (LF) or U+000D CARRIAGE RETURN (CR) characters.</p> </blockquote> <p>Apparently, the recommendation is to use a <code>title</code> attribute for anything longer.</p> <blockquote> <p>For a longer hint or other advisory text, the title attribute is more appropriate.</p> </blockquote> <p><strong>EDIT (1/8/18):</strong></p> <p>For <code>&lt;textarea&gt;</code>'s this does not appear to be the case. The spec actually outlines that carriage returns + line breaks MUST be rendered as such by the browser.</p> <blockquote> <p>User agents should present this hint to the user when the element’s value is the empty string and the control is not focused (e.g., by displaying it inside a blank unfocused control). All U+000D CARRIAGE RETURN U+000A LINE FEED character pairs (CRLF) in the hint, as well as all other U+000D CARRIAGE RETURN (CR) and U+000A LINE FEED (LF) characters in the hint, must be treated as line breaks when rendering the hint.</p> </blockquote> <p>See docs: <a href="http://w3c.github.io/html/sec-forms.html#element-attrdef-textarea-placeholder" rel="nofollow noreferrer">http://w3c.github.io/html/sec-forms.html#element-attrdef-textarea-placeholder</a><br> Also reflected on MDN: <a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea" rel="nofollow noreferrer">https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea</a></p> <p>FWIW, when I try on Chrome 63.0.3239.132, it does indeed work as it says it should.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload