Click here to Skip to main content
15,891,136 members
Articles / Web Development / HTML5

HTML5 Quick Start Web Application

Rate me:
Please Sign up or sign in to vote.
4.91/5 (105 votes)
15 Feb 2013CPOL11 min read 364.8K   11.8K   239  
HTML5 self learning center - Explore and understand the new features!
<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Forms.aspx.cs" Inherits="HTML5Samples.NavigateTo.Forms" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <nav class="breadcrumb">
      <a></a> ->
      <a href="TableOfContents.aspx" rel="up">Table of Contents</a> ->
      <a>Forms</a>      
    </nav>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<h2>
    Forms - More Meaningful Tags
</h2>
<p>
    <ul>
        <li>New Input Types & Attributes <a class="toggleNextElement">[...]</a>
            <form class="toggleMeNoMargin" action="#" autocomplete="off" oninput="score.value = rscore.valueAsNumber">      
                <ul>
                    <li>email : <input type="email" multiple required autofocus placeholder="sample@sample.com" /><input type="submit" value="go"/></li>                    
                    <li>url : <input type="url" /><input type="submit" value="go"/></li>
                    <li>number :  <input type="number" /></li>                    
                    <li>date time : <input type="date"/><input type="time"/></li>
                    <li>search : <input type="search"/><input type="submit" value="go"/></li>
                    <li>range : <input type="range" max="100" min="80" step="2" title="Your AES score" name="rscore"/><output class="alignTop" name="score">90</output></li>
                    <li>color : <input type="color"/></li>                    
                </ul>
            </form>  
        </li>        
        <li>New Elements <a class="toggleNextElement">[...]</a>
            <form class="toggleMeNoMargin" action="#" autocomplete="off" novalidate>
                <ul>
                    <li>datalist : <input type="text" id="somenames" list="fullList" />
                                        <datalist id="fullList">
                                            <option value="Sandeep">
                                            <option value="Deepak">
                                            <option value="Sandy">
                                            <option value="Deepu">                                            
                                        </datalist>
                    </li>
                    <li>keygen</li> 
                    <li>output</li>
                </ul>
            </form>
        </li> 
        <li>New Attributes <a class="toggleNextElement">[...]</a>
            <form class="toggleMeNoMargin" action="#" autocomplete="off">      
                <ul>
                    <li>spellcheck : <input type="text" spellcheck="false" placeholder="Without Spellcheck"> <input type="text" spellcheck="true" placeholder="With Spellcheck"></li>
                    <li>autofocus</li> 
                    <li>list</li>
                    <li>required</li>                
                    <li>placeholder</li>                
                    <li>min and max</li>
                    <li>multiple</li>                    
                </ul>
            </form>
        </li>
        <li>New Events <a class="toggleNextElement">[...]</a>
            <form class="toggleMeNoMargin">
                <ul>                
                    <li>orientationchange</li>
                    <li>resize</li>
                    <li>online</li>
                    <li>offline</li>
                </ul>
            </form>
        </li>       
        <li>New Selector <a class="toggleNextElement">[...]</a>
            <form class="toggleMeNoMargin" action="#" autocomplete="off">
                <ul>
                    <li>document.querySelector() - Return the first element in the page which matches the specified selector rules
                        <a class="toggleNextElement smallSize">[Show / Hide Code]</a>
<pre class="toggleMe code">  
    // Returns the first element in the document with the class "myclass"                              
    var el = document.querySelector(".myclass");                         
</pre>
                    </li>
                    <li>document.querySelectorAll() - Returns all elements which match the specified rules
                        <a class="toggleNextElement smallSize">[Show / Hide Code]</a>
<pre class="toggleMe code">                                
    // Returns the list of all the element in the document with the class "myclass"
    var els = document.querySelectorAll(".myclass");                     
</pre>
                    </li>
                </ul>
            </form>
        </li>
    </ul>
</p>
</asp:Content>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Architect Intuit India
India India


A software professional for more than 17+ years building solutions for Web and Desktop applications.

Currently working at Intuit India.

Website: Learn By Insight
Github: Sandeep Mewara
LinkedIn: Sandeep Mewara

Strongly believe in learning and sharing knowledge.



Comments and Discussions