HTML5 is the latest version of HTML. HTML is not a programming language, but rather a markup language. HTML5 is a standard for structuring and presenting content on the World Wide Web.
Features of HTML5:
- HTML5 is cooperation between the World Wide Web Consortium (W3C) and the Web Hypertext Application Technology Working Group (WHATWG).
- Using HTML5 you can easily or directly play the video. No need to installed any player or flash player to play video. Video file can be easily used with <video> tag.
- Drag-and-drop that have been previously dependent on third-party browser plug-ins such as Adobe Flash, Microsoft Silverlight, and Google Gears. Now it easy with HTML5.
- The latest versions of Safari, Chrome, Firefox, and Opera all support many HTML5 features and Internet Explorer 9.0 will also have support for some HTML5 functionality.
- Pre-installed mobile browsers also support HTML5.
- New Semantic Elements: These are like <header>, <footer>, and <section>.
- Improvements to HTML web forms where new attributes have been introduced for <input> tag.
- Geolocation: Now visitors can choose to share their physical location with your web application.
The HTML 5 language has a “custom” HTML syntax that is compatible with HTML 4 and XHTML1 documents published on the Web.
HTML 5 does not have the same syntax rules as XHTML where we needed lower case tag names, quoting our attributes; an attribute had to have a value and to close all empty elements.
But HTML5 is coming with lots of flexibility and would support the followings:
- Uppercase tag names.
- Quotes are optional for attributes.
- Attribute values are optional.
DOCTYPEs in older versions of HTML were longer because the HTML language was SGML based and therefore required a reference to a DTD.
HTML 5 authors can use simple syntax to specify Character Encoding as follows:
Note: Above syntax are case sensitive
Image Credit: www.downgraf.com