Introduction
Forms are the workhorse of any web application. Whether you are updating your Facebook status, paying a bill online, or remotely programming your DVR, forms are making the magic happen Currently, making that magic both robust and seamless requires some interesting and tricky uses of HTML and JavaScript.HTML5 makes much of this work far simpler – and even where browsers aren’t yet supporting these new HTML5 form features, it’s easy to add support with JavaScript on these building blocks.
HTML5 gives us new elements and input attribute values for the input element to yield new form fields, as well as new attributes that allow us to remove many lines of Java- Script.
However, since not all browsers yet support these new features, some JavaScript is still needed to ensure cross-browser compatibility.
No comments:
Post a Comment