Published on

Published in: Education, Technology
  • Be the first to comment

  • Be the first to like this


  2. 2. Introduction to HTML 5
  3. 3. • Web Hypertext Application Technology Working Group (WHATWG) Founded in 2004 (by individuals working for browser vendors Apple, Mozilla, Google, and Opera) Develops HTML and APIs for web application development Unofficial and open collaboration of browser vendors and interested parties • World Wide Web Consortium (W3C) Created draft of HTML5 in 2008 STANDARDS
  4. 4. OBJECTIVES <ul><ul><li>HTML 5 was poineered in the year 2004 by Web Hypertext Application Technology User Group (WHATWG). </li></ul></ul><ul><ul><li>The working group includes Google, Mozilla, Opera, Apple, AOL, Nokia and many others. </li></ul></ul><ul><ul><li>The specification is ongoing working and expected to remain so for many years. </li></ul></ul>
  5. 5. <ul><li>Provide good support for modern documents and web applications </li></ul><ul><li>-Web 2.0; social sites; online shops; ... </li></ul><ul><li>Support legacy web content. </li></ul><ul><li>Optimise backward compatibility </li></ul><ul><li>-HTML4, XHTML 1 </li></ul><ul><li>Cover common browser functionality. </li></ul><ul><li>Make web content authoring more uniform. </li></ul>
  6. 6. PARADIGM <ul><li>HTML 5 is a content model, not a syntax. </li></ul><ul><li>Emphasises what web contents consists of, not how it is represented. </li></ul><ul><li>Definition of Document Object Model. </li></ul><ul><li>In HTML </li></ul><ul><li><!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.01 Transitional//EN&quot; </li></ul><ul><li>&quot; &quot;> </li></ul><ul><li>In HTML 5 </li></ul><ul><li><!DOCTYPE html> </li></ul>
  7. 7. <ul><ul><li>Simplified Character Set </li></ul></ul><ul><li>In HTML </li></ul><ul><li><meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot;> </li></ul><ul><li>In HTML 5 </li></ul><ul><li><meta charset=&quot;utf-8&quot;> </li></ul>
  8. 8. WHAT IS NEW IN HTML 5 ??? <ul><li>Structure of textual documents </li></ul><ul><li>section, article, header, footer, ... </li></ul><ul><li>Multimedia </li></ul><ul><li>audio, video, embed, ... </li></ul><ul><li>Graphics </li></ul><ul><li>canvas, figure, ... </li></ul><ul><li>Forms </li></ul><ul><li>Input, ... </li></ul><ul><li>Editing </li></ul><ul><li>drag-and-drop, copy-and-paste, undo, ... </li></ul><ul><li>etc... </li></ul>
  9. 9. HTML 5 New Structure HTML 5 recognizes that Web pages have a structure, just like books have a structure or other XML documents. In general, Web pages have navigation, body content, and sidebar content plus headers, footers, and other features. And HTML 5 has created tags to support those elements of the page. <section> - to define sections of pages <header> - defines the header of a page <footer> - defines the footer of a page <nav> - defines the navigation on a page <article> - defines the article or primary content on a page <aside> - defines extra content like a sidebar on a page <figure> - defines images that annotate an article
  11. 11. HTML 5 New Inline Elements These inline elements define some basic concepts and keep them semantically marked up, mostly to do with time: <mark> - to indicate content that is marked in some fashion <time> - to indicate content that is a time or date <meter> - to indicate content that is a fraction of a known range - such as disk usage <progress> - to indicate the progress of a task towards completion HTML 5 New Elements There are a few exciting new elements in HTML 5: <canvas> - an element to give you a drawing space in JavaScript on your Web pages. It can let you add images or graphs to tool tips or just create dyanmic graphs on your Web pages, built on the fly. <video> - add video to your Web pages with this simple tag. <audio> - add sound to your Web pages with this simple tag.
  12. 12. CANVAS HTML5 element and plugin-free 2D drawing API that enables you to dynamically generate and render: Graphics Charts Images Animation Canvas was originally introduced by Apple to be used in Mac OS X WebKit to create dashboard widgets. Canvas is a scriptable bitmap canvas (images that are drawn are final and cannot be resized). Can be manipulated with JavaScript and styled with CSS 2D Context and 3D Context (Web GL). SYNTAX: Example: <canvas id=&quot;myCanvas&quot; width=&quot;200&quot; height=&quot;100&quot;></canvas>
  13. 13. Sample Program verified: <!DOCTYPE HTML> <html> <body> <canvas id=&quot;myCanvas&quot; width=&quot;700&quot; height=&quot;500&quot; style=&quot;border:5px solid #000000;&quot;> Your browser does not support the canvas element. </canvas> <script type=&quot;text/javascript&quot;> var c=document.getElementById(&quot;myCanvas&quot;); var cxt=c.getContext(&quot;2d&quot;); var img=new Image() img.src=&quot;/home/fp053/Desktop/html5structure.png&quot; cxt.drawImage(img,0,0); </script> </body> </html> Here, an image is embedded in the canvas.
  14. 14. <ul><li>AUDIO 'n' VIDEO: </li></ul><ul><li>New HTML5 media elements </li></ul><ul><li><audio> </li></ul><ul><li><video> </li></ul><ul><li>Control using Audio/Video API </li></ul><ul><li>Native support in the browser (embedded codecs) </li></ul><ul><li>Originally, the HTML5 specification was going to require codec support... </li></ul><ul><li>Audio and Video containers: </li></ul><ul><li> H264 and Ogg </li></ul><ul><li>Audio and video codecs (algorithms used to encode and decode an audio or video stream): </li></ul><ul><li>Audio: AAC, MP3, Vorbis </li></ul><ul><li>Video: H264, MP4, Theora </li></ul><ul><li>You can add multiple formats per (audio/video) element to fallback. </li></ul>
  15. 15. DETAILS: NAME : S. Renu Karthick MAIL : [email_address] BLOG :