HTML5 with examples
Upcoming SlideShare
Loading in...5
×
 

HTML5 with examples

on

  • 2,900 views

this is slide for html5 guide with examples.

this is slide for html5 guide with examples.

Statistics

Views

Total Views
2,900
Views on SlideShare
2,796
Embed Views
104

Actions

Likes
0
Downloads
104
Comments
0

2 Embeds 104

http://www.developersnacks.com 87
http://developersnacks.blogspot.com 17

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

HTML5 with examples HTML5 with examples Presentation Transcript

  • - <code>Gopinath T.M</code>
    • HTML5 will be the new standard for HTML, XHTML, and the HTML DOM.
    • WHATWG was working with web forms and applications, and W3C was working with XHTML 2.0. In 2006, they decided to cooperate and create a new version of HTML.
    • The canvas element for drawing
    • The video and audio elements for media playback
    • Better support for local offline storage
    • New content specific elements, like article, footer, header, nav, section
    • New form controls, like calendar, date, time, email, url, search
  • Document DOM HTML 5 text/html XHTML 5 application/xhtml+xml
    • HTML Older version Code
      • <img src=&quot;path/to/image&quot; alt=&quot;About image&quot; />  <p>Image of Mars. </p>.
    • HTML5
      • <figure>
      • <img src=&quot;path/to/image&quot; alt=&quot;About image&quot; />
      • <figcaption>
      • <p>This is an image of something interesting.</p>
      • </figcaption>
      • </figure>
    • HTML Older Version Code.
      • <link rel=&quot;stylesheet&quot; href=&quot;path/to/stylesheet.css&quot; type=&quot;text/css&quot; />
      • <script type=&quot;text/javascript“
      • src=&quot;path/to/script.js&quot;></script>
    • HTML5
      • <link rel=&quot;stylesheet&quot; href=&quot;path/to/stylesheet.css&quot; />
      • <script src=&quot;path/to/script.js&quot;></script>
    • HTML Older Version
      • We need to add some client side script to make the things happened.
    • HTML5
      • <ul contenteditable=&quot;true&quot;>
      • <li> Break mechanical cab driver. </li>
      • <li> Drive to abandoned factory
      • <li> Watch video of self </li>
      • </ul>
    • Color
    • date 
    • datetime 
    • datetime-local 
    • email 
    • File with multiple file selection.
    • month 
    • number 
    • range 
    • Search
    • Tel
    • time 
    • url
    • week
    • HTML Older Version Code.
      • <form action=&quot;&quot; method=&quot;get&quot;>
    • <label for=&quot;email&quot;>Email:</label>
    • <input id=&quot;email&quot; name=&quot;email&quot; type=“text&quot; />
    • <button type=&quot;submit&quot;> Submit Form </button>
    • </form>
    • HTML5
      • <form action=&quot;&quot; method=&quot;get&quot;>
    • <label for=&quot;email&quot;>Email:</label>
    • <input id=&quot;email&quot; name=&quot;email&quot; type=&quot;email&quot; />
    • <button type=&quot;submit&quot;> Submit Form </button>
    • </form>
    • HTML Older Version
      • We need to required some client side script to validate the things.
    • HTML5
      • <form method=&quot;post&quot; action=&quot;&quot;>
      • <label for=&quot;someInput&quot;> Your Name: </label>
      • <input type=&quot;text&quot; id=&quot;someInput&quot; name=&quot;someInput&quot; placeholder=&quot;Douglas Quaid&quot; required>
      • <button type=&quot;submit&quot;>Go</button>
      • </form>
      • HTML Older Version
        • We need to add some client side script to make the things happened.
    • HTML5
      • <form method=&quot;post&quot; action=&quot;&quot;>
    • <label for=&quot;someInput&quot;> Your Name: </label>
    • <input type=&quot;text&quot; id=&quot;someInput&quot; name=&quot;someInput&quot; placeholder=“Enter your name&quot; required>
    • <button type=&quot;submit&quot;>Go</button>
    • </form>
    • HTML5
      • <audio autoplay=&quot;autoplay&quot; controls=&quot;controls&quot;>
    • <source src=&quot;file.ogg&quot; />
    • <source src=&quot;file.mp3&quot; />
    • <a href=&quot;file.mp3&quot;>Download this file.</a>
    • </audio>
    • <video controls preload>
    • <source src=&quot;cohagenPhoneCall.ogv&quot; type=&quot;video/ogg; codecs='vorbis, theora'&quot; />
    • <source src=&quot;cohagenPhoneCall.mp4&quot; type=&quot;video/mp4; 'codecs='avc1.42E01E, mp4a.40.2'&quot; />
    • <p> Your browser is old. <a href=&quot;cohagenPhoneCall.mp4&quot;>Download this video instead.</a> </p>
    • </video>
  •  
    • <form action=&quot;&quot; method=&quot;post&quot;>
    • <label for=&quot;username&quot;>Create a Username: </label>
    • <input type=&quot;text&quot;
    • name=&quot;username&quot;
    • id=&quot;username&quot;
    • placeholder=&quot;4 <> 10&quot;
    • pattern=&quot;[A-Za-z]{4,10}&quot;
    • autofocus
    • required>
    • <button type=&quot;submit&quot;>Go </button>
    • </form>
    • <h3> Search Results </h3>
    • <p> They were interrupted, just after Quato said, <mark>&quot;Open your Mind&quot;</mark>. </p>
    • LocalStorage - stores data with no time limit
      • <script type=&quot;text/javascript&quot;> localStorage.lastname=&quot;Smith&quot;; document.write(localStorage.lastname); </script>
    • Ses sionStorage - stores data with one time session
      • <script type=&quot;text/javascript&quot;> sessionStorage.lastname=&quot;Smith&quot;; document.write(sessionStorage.lastname); </script>
    • <canvas id=&quot;myCanvas&quot; width=&quot;200&quot; height=&quot;100&quot; style=&quot;border:1px solid #c3c3c3;&quot;>
    • Your browser does not support the canvas element.
    • </canvas>
    • <script type=&quot;text/javascript&quot;>
    • var c=document.getElementById(&quot;myCanvas&quot;);
    • var ctx=c.getContext(&quot;2d&quot;);
    • ctx.fillStyle=&quot;#FF0000&quot;;
    • ctx.fillRect(0,0,150,75);
    • </script>
    • http://html5test.com/
    • www.developersnacks.com