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
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.
Deep Learning with Python by François Chollet(12569)
Hello! Python by Anthony Briggs(9914)
OCA Java SE 8 Programmer I Certification Guide by Mala Gupta(9795)
The Mikado Method by Ola Ellnestam Daniel Brolund(9777)
Dependency Injection in .NET by Mark Seemann(9337)
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(8295)
Test-Driven iOS Development with Swift 4 by Dominik Hauser(7763)
Grails in Action by Glen Smith Peter Ledbrook(7696)
The Well-Grounded Java Developer by Benjamin J. Evans Martijn Verburg(7557)
Becoming a Dynamics 365 Finance and Supply Chain Solution Architect by Brent Dawson(7056)
Microservices with Go by Alexander Shuiskov(6819)
Practical Design Patterns for Java Developers by Miroslav Wengner(6736)
Test Automation Engineering Handbook by Manikandan Sambamurthy(6677)
Secrets of the JavaScript Ninja by John Resig Bear Bibeault(6413)
Angular Projects - Third Edition by Aristeidis Bampakos(6083)
The Art of Crafting User Stories by The Art of Crafting User Stories(5609)
NetSuite for Consultants - Second Edition by Peter Ries(5549)
Demystifying Cryptography with OpenSSL 3.0 by Alexei Khlebnikov(5350)
Kotlin in Action by Dmitry Jemerov(5062)
