Here we have a nice tutorial about creating How to digital clock with jQuery. Nice training, and a nice final effect to use in web projects.
Tutorial: digital clock with jQuery and CSS3
The clock doesn’t need a lot of HTML, because a large part of it, like the names of the weekdays and the code for the digits, is generated dynamically!
There is CSS class .digits for an element. This will contain 6 of these divs with spans, one for each digit of the time. Interesting details – explained in tutorial.
Full tutorial – all the details and download:
There is a second part of this tutorial, about are adding support for setting alarms with HTML5 audio: