Skip to content

Category: Programming

Adding a label when placeholder isn’t supported by browser

I’m sitting here working on a JavaScript heavy web app, and it has a few forms that are large enough that the placeholder attribute available in HTML 5 was the way to go. Only catch, not all browsers support placeholder so I needed something to fall back on.

What I normally do is put a label on top of the field, and that seemed a pretty good solution to fallback on if placeholder isn’t supported.