Add Placeholder Text to a Text Field

How to Add Placeholder Text:-

Placeholder text is what is displayed in your input element before your's  inputted anything in text field.
              placeholder selector selects form elements with placeholder text. The placeholder text is set with the placeholder attribute, which specifies a hint that describes the expected value of an input field.                                               The default color of the placeholder text is light grey in most browsers



For Example:

<html>
<head>
<title> wikibooster </title>
</head>
<body>
<h1> This is wikibooster </h1>
<input type="text" placeholder=" This is your text field">
</body>
</html>


Output:















Please Share To Other:

Post a Comment

0 Comments