<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
    xmlns:content="http://purl.org/rss/1.0/modules/content/"
    xmlns:wfw="http://wellformedweb.org/CommentAPI/"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
    xmlns:atom="http://www.w3.org/2005/Atom"
    xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    >

<channel>
    <title>Webmonkey &#187; Validation</title>
    <atom:link href="http://www.webmonkey.com/tag/validation/feed/" rel="self" type="application/rss+xml" />
    <link>http://www.webmonkey.com</link>
    <description>The Web Developer&#039;s Resource</description>
    <lastBuildDate>Mon, 06 May 2013 17:29:19 +0000</lastBuildDate>
    <language>en-US</language>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <generator>http://wordpress.org/?v=3.4.2</generator>
    
    <item>
        <title>Working With Forms in HTML5</title>
        <link>http://www.webmonkey.com/2010/11/working-with-forms-in-html5/</link>
        <comments>http://www.webmonkey.com/2010/11/working-with-forms-in-html5/#comments</comments>
        <pubDate>Mon, 15 Nov 2010 18:37:09 +0000</pubDate>

                <dc:creator>Scott Gilbertson</dc:creator>

        <guid isPermaLink="false">http://www.webmonkey.com/?p=49154</guid>
        		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[forms]]></category>
		<category><![CDATA[Validation]]></category>
            <enclosure url="http://www.webmonkey.com/wp-content/uploads/2010/11/form.jpg" type="image/jpeg" length="48000" />
                    <description><![CDATA[<div class="rss_thumbnail"><img src="http://www.webmonkey.com/wp-content/uploads/2010/11/form.jpg" alt="Working With Forms in HTML5" /></div>The HTML5 specification adds a new set of tools for handling web forms. Generally referred to as HTML5 Forms, the new tools enable browser-side form validation. It&#8217;s important to understand that HTML5 Forms are not meant as your sole means of validation. You still need to do server-side validation and, of course, sanitize the user&#8217;s [...]]]></description>

            <content:encoded><![CDATA[<p><!-- wpautop enabled -->
<p><a href="http://www.webmonkey.com/wp-content/uploads/2010/11/form.jpg"><img src="http://www.webmonkey.com/wp-content/uploads/2010/11/form-300x240.jpg" alt="" title="form" width="300" height="240" class="alignleft size-medium wp-image-49157" /></a>The HTML5 specification adds a new set of tools for handling web forms. Generally referred to as HTML5 Forms, the new tools enable browser-side form validation.</p>
<p>It&#8217;s important to understand that <a href="http://www.w3.org/TR/html5/forms.html">HTML5 Forms</a> are not meant as your sole means of validation. You still need to do server-side validation and, of course, sanitize the user&#8217;s input before you store anything in a database.</p>
<p>In fact, HTML5 form validation is less validation and more, as developer Mounir Lamouri puts it, &#8220;like an adviser guiding you in filling the form.&#8221; In other words, HTML5 forms provide a quick means of very basic validation to let users know about errors before they submit the form.</p>
<p>The new forms spec is essentially designed to replace any JavaScript validation tools you might be using now &#8212; for example, ensuring that required fields are filled in or that a <code>tel</code> field actually contains a telephone number.</p>
<p>Lamouri has written a good basic <a href="http://blog.oldworld.fr/index.php?post/2010/11/17/HTML5-Forms-Validation-in-Firefox-4">overview of how to use HTML5 forms in Firefox 4</a>, one of the few browsers that supports most of the Forms spec. WebKit browsers are a little behind but still <a href="http://www.webmonkey.com/2010/10/chrome-7-arrives-with-bug-fixes-better-html5-support/">support some of the spec</a>.</p>
<p>Obviously, with very limited browser support at this point, HTML5 forms aren&#8217;t ready for prime time. But if you&#8217;d like a glimpse of what&#8217;s coming, Lamouri&#8217;s overview makes a great introduction. If you&#8217;d like to experiment with the tools outlined in Lamouri&#8217;s post, you&#8217;ll need to grab a copy of  <a href="http://www.webmonkey.com/2010/11/new-beta-release-gives-firefox-a-shot-of-jager/">Firefox 4 beta 7</a>. </p>
<p>For further reading on HTML5 forms, be sure to check out the forms chapter in Mark Pilgrim&#8217;s <a href="http://diveintohtml5.org/forms.html">Dive into HTML5</a>, available for both online and offline browsing.</p>
<p><strong>See Also:</strong><br/></p>
<ul>
<li><a href="http://www.webmonkey.com/2010/09/microdata-html5s-best-kept-secret/">Microdata: HTML5’s Best-Kept Secret</a></li>
<li><a href="http://www.webmonkey.com/2010/05/where-on-the-web-is-html5/">Where on the Web Is HTML5?</a></li>
<li><a href="http://www.webmonkey.com/2010/11/new-beta-release-gives-firefox-a-shot-of-jager/">New Beta Release Gives Firefox a Shot of Jäger</a></li>
</ul>
<div id='linker_widget' class='contextly-widget'></div>]]></content:encoded>
            <wfw:commentRss>http://www.webmonkey.com/2010/11/working-with-forms-in-html5/feed/</wfw:commentRss>
        <slash:comments>5</slash:comments>

        
    </item>
    </channel>
</rss>
