Beginning HTML5 & CSS3 For Dummies by Ed Tittel & Chris Minnick

Beginning HTML5 & CSS3 For Dummies by Ed Tittel & Chris Minnick

Author:Ed Tittel & Chris Minnick
Language: eng
Format: epub
Publisher: John Wiley and Sons, Inc.
Published: 2013-08-11T16:00:00+00:00


Figure 10-5: Example time markup displayed in Chrome.

To fool around with <time> markup online, visit this page:

www.quackit.com/html_5/tags/html_time_tag.cfm

There's no real reason to update the datetime attribute in a <time> element, so we skip the pointers to JavaScript updating techniques in this section. That doesn't stop us from returning to that subject in the next section, though.

Updating HTML5 controls

We can share the secret to updating HTML5 controls in one word: JavaScript. Though it's not the only scripting tool available to web content developers (that's you!), it is probably the most popular and widely used of such tools. To make a progress bar show progress or a meter measure change over time, you need some way to update the value associated with the value attribute as the web page is processed. JavaScript offers lots of good ways to do this, including responding to events in the browser environment, polling changes to local variables, counting time (or other values), and so forth.

To really understand how to use the <progress> or <meter> elements in HTML5, you have to understand JavaScript (or another web-friendly scripting language). That's outside the scope of this particular book, though we did include examples you can imitate to take the "monkey-see, monkey-do" approach to putting this markup to work. If you want to do it right, however, you'll want to add to your reading list. In particular, you might find these other For Dummies books of great interest:

HTML5 Programming with JavaScript For Dummies, by John Paul Mueller (April 2013), more or less picks up where we leave off here.

PHP, MySQL, JavaScript & HTML5 All-in-One For Dummies, by Steve Suehring and Janet Valade (April 2013), covers a full range of HTML5-related programming topics and tools. The book is designed as a comprehensive reference.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.