placeholder

object placeholder extends Attr

textarea - A hint to the user of what can be entered in the control. Carriage returns or line-feeds within the placeholder text must be treated as line breaks when rendering the hint. input - A hint to the user of what can be entered in the control . The placeholder text must not contain carriage returns or line-feeds. 

<strong>Note:</strong> Do not use the <code>placeholder</code> attribute instead of a <a title="The HTML <label> element represents a caption for an item in a user interface." href="/en-US/docs/Web/HTML/Element/label"><code><label></code></a> element, their purposes are different. The <a title="The HTML <label> element represents a caption for an item in a user interface." href="/en-US/docs/Web/HTML/Element/label"><code><label></code></a> attribute describes the role of the form element (i.e. it indicates what kind of information is expected), and the <code>placeholder</code> attribute is a hint about the format that the content should take. There are cases in which the <code>placeholder</code> attribute is never displayed to the user, so the form must be understandable without it.

trait Attr
class Object
trait Matchable
class Any

Type members

Classlikes

object tag extends TagElement

Inherited types

type supports[T <: Tag] = AttrPair[attrType] => AttrPair[tagType]
Inherited from
Attr

Value members

Concrete methods

@inline
def :=(v: String): AttrPair[_placeholder_attr]
@inline
def :=(v: Option[String]): OptionalAttrPair[_placeholder_attr]