Blog

Cross Browser Input Placeholder Attribute

shutterstock_234378844
BLOG / Web Development

Cross Browser Input Placeholder Attribute

The placeholder attribute is the method of setting placeholder text for text-like input fields, to suggest the expected inserted information.

Browser Support

Input placeholder attribute is already supported by all major browsers so it should be really easy to get it working cross-browser.

Code Example

You can use input placeholder attribute like this:

<input type="text" placeholder="Your Name"></input>

More Information

More information can be found here.

Leave your thought here

Your email address will not be published. Required fields are marked *