Tuesday, June 23, 2015

HTML5

HTML5


HTML5 will be the new standard for HTML, XHTML, and the HTML DOM. The previous version of HTML came in 1999. The Web has changed a lot since then. HTML5 is still a work in progress. However, most modern browsers have some HTML5 support.

Some rules for HTML5 were established.

  • New features should be based on HTML, CSS, DOM, and JavaScript.
  • The need for external plugins (like Flash) should be reduced.
  • There should be better error handling.
  • There should be more markup to replace scripting.
  • HTML5 should be device independent.
  • The development process should be visible to the public.

New Features

  • The canvas element for drawing
  • The video and audio elements for media playback
  • Better support for local offline storage
  • New content-specific elements, such as article, footer, header, nav, and section
  • New form controls, such as calendar, date, time, e-mail, URL, and search

New Elements In HTML5

    <article> - This specifies independent, self-contained content; it could be a news article, blog post, forum post, or other article that can be distributed independently from the rest of the site.
    <aside> - This is for content aside from the content it is placed in. The aside content should be related to the surrounding content.
    <summary> - This is a caption, or summary, inside the details element.
    <footer> - This is for a footer of a document or section; it could include the name of the author, the date of the document, contact information, or copyright information.
    <header> - This is for an introduction of a document or section; could include navigation.
    <nav> - This is for a section of navigation.
    <section> - This is for a section in a document, such as chapters, headers, footers, or any other sections of the document.
    <audio> - This is for multimedia content, sounds, music, or other audio streams.
    <video> - This is for video content, such as a movie clip or other video streams.
    <source> - This is for media resources for media elements, defined inside video, or audio elements.
    <canvas> - This is for making graphics with a script.

No comments:

Post a Comment