demosthenes.info

I’m Dudley Storey, the author of Pro CSS3 Animation. This is my blog, where I talk about web design and development with , and . To receive more information, including news, updates, and tips, you should follow me on Twitter or add me on Google+.

web developer guide

my books

Book cover of Pro CSS3 AnimationPro CSS3 Animation, Apress, 2013

my projects

CSSslidy: an auto-generated #RWD image slider. 1.5K of JS, no JQuery. Drop in images, add a line of CSS. Done.

tipster.ioAutomatically provides local tipping customs and percentages for services anywhere.

Try typing numbers into the field above and pressing the submit button to see the custom error message (Safari requires a polyfill)

Create Custom HTML5 Form Error Messages with the Title Attribute

html / forms

Estimated reading time: 1 minute, 43 seconds

In previous articles I’ve shown how to set custom error messages for with CSS and JavaScript. Recently Estelle Weyl demonstrated a method that seems to have gone largely unremarked in browser and spec documentation: form validation customization by using the title attribute.

Playing With The HTML5 range Slider Input

html / forms

Estimated reading time: 6 minutes

Among the many new elements that HTML5 has introduced, range is perhaps the oddest but also the most generally useful. Previously requiring a great deal of coding or a framework to generate, you can now create a slide control natively in all modern browsers with a single element.

range is particularly useful for forms in which three conditions exist:

A high-contrast photograph of ducks and swans being fed from a snowy river bank in Krakow, Poland.

input Antipode: The HTML5 output Element

html / forms

Estimated reading time: 2 minutes

Of the many new features introduced by HTML5, only one element was designed to be the exact opposite of a tag that already existed: <output>, the logical companion to HTML’s <input>.

Originally designed to contain the results of a form calculation, the scope of the <output> element was expanded to make it useful for many purposes, not just traditional forms. However, like <progress> and other tags, <output> depends on HTML5’s close relationship with JavaScript: without the addition of some simple scripting, the tag doesn’t have a great deal of utility.

This site helps millions of visitors while remaining ad-free. For less than the price of a cup of coffee, you can help pay for bandwidth and server costs while encouraging further articles.