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

A Sass color keyword system for designers. Replaces CSS defaults with improved hues and more memorable, relevant color names.

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

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

Push the button. Go on, I dare you

Are you sure?

You’ve pressed a big red button. It might do… something.

Native Modal Windows in HTML5: Using the dialog Element

html / forms

Estimated reading time: 3 minutes, 30 seconds

Everyone has experienced a cautionary moment online: placing an order, making a vote, deleting an account. These permanent actions often require an intermediary step, a prompt that ensures that the user really wants to go ahead with the process. To forestall mistakes, this prompt is usually displayed in a modal window: a UI element that usurps normal browser controls, forcing the user to make a choice (usually a binary Okay / Cancel option) before proceeding.

Traditionally, this dialog window has been created with JavaScript, most commonly via a framework or library. Today, the same modal nature is supported natively in HTML5 (more correctly, in HTML 5.1: <dialog> didn’t quite make the official HTML5 specification). Adding one to a page is very straightforward:

Photograph of a ball calendar displaying a date

Using The HTML5 Date Input

html / forms

Estimated reading time: 6 minutes

Any online form that requires a scheduling, appointment or a booking function usually needs some kind of date picker. Traditionally this has been covered by JQuery or another JavaScript framework, but HTML5 features its own native date input, with good and growing browser support… with the unfortunate exception of Firefox and Safari, at least right now.

Web Developer Reading List: HTML5 Markup

reading lists / html

Estimated reading time: 1 minute

Most new HTML5 elements are covered in elsewhere in this blog (most particularly the forms and multimedia reading lists) but there are a few dozen tags that don’t fit into those categories. Most of these are section elements, newly introduced in HTML5, and are fundamental to the construction of a modern web page.

Goal: Build a page using HTML5 markup

Prerequisites: HTML5 Backgrounder

Total time: 3 hours

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.