You are previewing HTML5 for Web Designers.

HTML5 for Web Designers

Cover of HTML5 for Web Designers by Jeremy Keith Published by A Book Apart
Chapter 4: Web Forms 2.0

When JavaScript was introduced into web browsers, it was immediately seized upon for two tasks: Image rollovers and form enhancements. When CSS came along with its :hover pseudo-class, web designers no longer needed to reach for JavaScript just to achieve a simple rollover effect.

This is a recurring trend. If a pattern is popular enough, it will almost certainly evolve from requiring a scripted solution to something more declarative. That’s why CSS3 introduces even more animation capabilities that previously required JavaScript.

When it comes to enhancing forms, CSS has its limitations. That’s where HTML5 comes in. Following the same migratory ...

The best content for your career. Discover unlimited learning on demand for around $1/day.