It is a markup language used for structuring and presenting content for the World Wide Web and a core technology of the Internet. It is the fifth revision of the HTML standard (created in 1990 and standardized as HTML 4 as of 1997) and, as of December 2012, is a … Read more
HTML5 : Fifth major revision of HTML.
HTML5 is being developed as the next, fifth major revision of HyperText Markup Language, from the core markup language of the World Wide Web.
HTML5 Browser Support
HTML5 is supported in all modern browsers. The latest versions of Google Chrome, Apple Safari, Mozilla Firefox, and Opera all support manyHTML5 features and Internet Explorer 9.0 will also have support for some HTML5 functionality.
The mobile web browsers that come pre-installed on iPhones, iPads, and Android phones all have … Read more
HTML5 : New features
HTML5 introduces a number of new elements
and attributes that helps in building a modern
websites. Following are great features introduced in HTML5.
New Semantic Elements:
HTML5 introduces new semantic elements like <header>, <footer>, and <section>.
Forms 2.0:
Improvements to HTML web forms where new attributes have been
introduced for … Read more
Backward Compatibility in HTML5
HTML5 is designed, as much as possible, to be backward compatible with existing all major web browsers. New features build on existing features and allow you to provide fallback content for older browsers.
It is suggested to detect support for individual HTML5 features using a few lines of JavaScript.
Browsers … Read more
HTML5 Syntax
The HTML 5 language has a “custom” HTML syntax that is compatible with HTML 4 and XHTML1 documents published on the Web, but is not compatible with the more esoteric SGML features of HTML 4. HTML 5 does not have the same syntax rules as XHTML where we needed lower … Read more
DOCTYPE in HTML5
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 would use simple syntax to specify DOCTYPE as follows:
All the above syntax is case-insensitive… Read more
Character Encoding in HTML5
HTML 5 authors can use simple syntax to specify Character Encoding as follows:
All the above syntax is case-insensitive.… Read more
Script tag in HTML5
It’s common practice to add a type attribute with a value of “text/javascript” to script elements as follows:
Link tag in HTML5
So far we are writing as follows:
HTML5 basic elements
HTML5 elements are marked up using start tags and end tags. HTML5 Tags are delimited using angle brackets with the tag name in between.
The difference between start tags and end tags is that the latter includes a slash before the tag name.
Following is the example of an HTML5 … Read more