Categories
HTML5

HTML5 <input> placeholder attribute

So I┬áset out to add some placeholder text for login fields in my CakePHP project. First I tried the default attribute, and then started implementing some Javascript to clear the text from the field on focus. Then I remembered the awesomeness that is HTML5 has introduced the placeholder attribute to the input tag. Placeholder text […]