O'Reilly logo

HTML5 Multimedia Development Cookbook by Lee Jordan, Dale Cruse

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Displaying placeholder text

The first new HTML5 form ability we want to check out is the native ability to display placeholder text.

How to do it...

We have all used — and even created — form placeholder text before. But now with HTML5 we're going to do it a bit differently and more efficiently. The Packt Publishing website features the ability to search the entire site or search only book/eBooks.

How to do it...

Once the user clicks on one of those two form fields, the placeholder text disappears.

How to do it...

This is accomplished via a traditional method of using the value attribute ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required