One of the nice enhancement in HTML5 web form is being able to add placeholder text to input fields. Placeholder attribute allows you to display text in a form input when it is empty and when it is not focused (it clears the field on focus). This is a nifty feature, but it is not [...]
View full post on Web Designer Wall – Design Trends and Tutorials
Vancouver graphic design, Vancouver web design, Vancouver seo, Vancouver internet marketing, Vancouver social media, web design Vancouver
Incoming search terms:
- ie9 placeholder
- placeholder ie9
- placeholder ie
- Powered by Article Dashboard science project display
- Powered by Article Dashboard art models
- Powered by Article Dashboard art work
- modernizr placeholder ie
- placeholder in ie
- ie placeholder
- placeholder is not working in ie
- Powered by Article Dashboard museum of modern art store
- form placeholder ie
- placeholder explorer
- Powered by Article Dashboard spider web nail art
- Powered by Article Dashboard animated funny videos clips
- Powered by Article Dashboard funny pics clips
- Powered by Article Dashboard letter samples
- jquery placeholder ie9
- Powered by Article Dashboard internet explorer
- Powered by Article Dashboard girls should not play football
- Powered by Article Dashboard funny videos of cats
- placeholder ie7
- Powered by Article Dashboard myspace page
- modernizr placeholder
- Powered by Article Dashboard support letter
- Powered by Article Dashboard museum of ancient and modern art
- Powered by Article Dashboard nail art galleries
- Powered by Article Dashboard ancient philosophy
- Powered by Article Dashboard fine art museum
- ie9 placeholder password
- Powered by Article Dashboard child art models
- Powered by Article Dashboard fine
- placeholder not working in ie
- Powered by Article Dashboard explore
- Powered by Article Dashboard enable javascript in internet explorer
- jquery ie9 placeholder
- Powered by Article Dashboard accounting terminology
- Powered by Article Dashboard general knowledge quiz for children
- Powered by Article Dashboard system software and application software
- Powered by Article Dashboard repair internet explorer
- Powered by Article Dashboard physics equations
- placeholder en ie9
- placeholder in ie9
- Powered by Article Dashboard myspace contact
- placeholder modernizr
- Powered by Article Dashboard spiderweb nail art
- jquery placeholder ie
- placeholder not showing in ie
- placeholder modernizr ie
- placeholder cross browser
- placeholder ie9 css
- placeholder ie9 problem
- placeholder for ie
- placeholder text not working in ie
- ie9 placeholder text
- Powered by Article Dashboard find people on myspace
- css placeholder ie9
- Powered by Article Dashboard power support
- html5 input password ie9 placeholder text
- Powered by Article Dashboard physics formulas
- Powered by Article Dashboard debate women in the military
- fallback explorer placeholder
- Powered by Article Dashboard difference between system software and application software
- Powered by Article Dashboard museum of bad art
- Powered by Article Dashboard user password
- ie7 placeholder formalize jump
- placeholder text ie9
- Powered by Article Dashboard myspace contact tables
- Powered by Article Dashboard college physics formulas
- Powered by Article Dashboard art work sculpture
- ie7 input placeholder
- Powered by Article Dashboard physics formula chart
- placeholder in html5 issue in IE9
- Powered by Article Dashboard myspace picture word graphics
- placeholder internet explorer
- Powered by Article Dashboard myspace video music codes
- placeholder ie9 without jquery
- placeholder in explorer mootools
- placeholder ie9 not working
- Powered by Article Dashboard physics problems power
- placeholder ie password fix
- placeholder ie issue
- showing placeholder text for password field in ie
- style input placeholder text is grey on iphone
- placeholder for ie problems
- placeholder is not working for IE
- Powered by Article Dashboard myspace picture graphics for page
- placeholder text for ie
- Powered by Article Dashboard ancient japanese art and culture
- placeholder text input ie password
- placeholder text modernizer ie9
- placeholder text not showing in ie
- placeholders ie7
- placeholders in ie 9
- placholder text not displying in ie
- placeholder styling ie
- placeholder password ie
- placeholder password for ie7
- placeholder issue in ie
- placeholder issue in ie9
That’s all very well, but why not just use the jQuery code and not bother with the HTML5? This would mean you don’t have to add modernizr to your page load.
The JS could be better. In general, avoid to select twice the same DOM elements. Store stuff in variables if nesseserly. And you should use ‘===’ instead of ‘==’ and i wonder why you need a second .blur() after the .blur()…
Thanks for the helpfull article.
I believe it’s quite common to remove the ‘Chrome’ borders of input boxes with outline:none (on the :focus) state. What’s the difference between this method and input[type="search"]::-webkit-search-decoration?
what about password input?
I fail to see how this is better than value.
I agree with Doug Neiner here, I think label is still required in web form. Label and placeholder serve two different purposes. Placeholder is not equal to label.
The entire point of my demo is just to show placeholder (not web standard form). Hence I didn’t even put a submit button in the form.
You might be interested in “Formalize CSS”
http://formalize.me/
It also removes the placeholder text, if you submit the formular, so there is no wrong data submitted.
Jonathan, but they serve completely different needs. Even though the HTML5 spec isn’t finalized, the goal of a placeholder is quite different than a label. A label also provides screen-readers with essential information about the field. I am not sure how they do with placeholders. Even though web standards have been widely adopted, mis-using an attribute or element is just as bad as it ever was.
Well Jonathan, I think that’s different with every person.
Personally I really really hate it when my label is gone on focus. Because I tab all my forms, I don’t see what type of input is needed in the next inputfield.
So I have to make 2 extra tabs, to see what inputfield I have when there is no seperate label.
But hey, that’s me of course
I think it’s fine to use placeholders as a replacement of labels, it’s cleaner and more condensed. It’s not apart of yesterdays semantic web, but i think tomorrow it should be.
That’s a debate I’ve had with a few people, too many treat it like a label where as a placeholder should simply show the format of an input and not be it’s label.
Though my comment here doesn’t change the *technical* aspect of the post (providing a fallback for placeholder), I think there is a large problem with the use case of the placeholder.
There is a difference between the HTML5 placeholder, and what I call an in-field label (What you are actually showing in this post). The placeholder is supposed to show *how* the user should input data. An in-field label serves the same purpose as a real label, only it appears in (or over) the field.
Here are some examples of the difference:
Label: Email
Placeholder: you@yourname.com
Label: Phone number
Placeholder: 413-123-4567
Just because the HTML5 placeholder looks like in-field labels we see around, it doesn’t serve the same purpose. If you plan to use the placeholder attribute, you should probably also provide a label.
This is a useful resource for seeing what attributes are supported by the modern browsers when styling the placeholder.
http://blog.ajcw.com/2011/02/styling-the-html5-placeholder/
It’s not possible to style the placeholder at all in IE9, Opera 10 (and below) or Firefox 3.6, and the rest also have mixed support.
I read your post Dave, but I think it’s fine to use it. Only thing I could think of is if you don’t have a seperate label, an older browser, and no Javascript enabled. You don’t see any hints about the field. But hey, who doesn’t have Javascript these days.
But I think it’s just great to use this new feature.
That’s a great feature. Last week I made something like that, but than for Mootools cause I like it better:
http://codeviewer.org/view/code:18cf
But it’s a powerfull css feature
I posted something similar a while ago on my own blog
http://www.kamikazemusic.com/quick-tips/jquery-html5-placeholder-fix/
There were concerns raised in the comments about the accessibility of injecting text into the val attribute, personally I think used sensibly and as long as the text is injected with JavaScript then it should be fine, maybe some readers here have a different view?