Difference between HTML and HTML5 - HTML vs HTML5



HTML vs HTML5

HTML HTML5
HTML does not provide native audio and video support. HTML5 provides native audio and video support.
HTML only supports vector graphics if used in conjunction
with different technologies like Flash, VML, or Silverlight.
HTML5 supports SVG (Scalable Vector Graphics), Canvas, and other virtual vector graphics.
HTML allows inline MathML and SVG in text with restricted use. HTML5 allows inline MathML and SVG in text.
HTML doesn’t allow users to draw shapes such as circles,
triangles, and rectangles.
HTML5 allows users to draw shapes such as circles, triangles, and rectangles.
HTML only uses browser cache and cookies to store data temporarily. HTML5 uses web SQL databases, local storage, and application cache for storing data temporarily.
JavaScript and browser interface run in the same thread. JavaScript and browser interface run in separate threads.
Longer document type declaration. Shorter document type declaration.
Longer character encoding declaration. Uses the ASCII character set. Shorter character encoding declaration. Uses the UTF-8 character set.
Compatible with almost all browsers. Only compatible with newer browsers, considering there are many new tags and elements which only some browsers support.
Built based on Standard Generalized Markup Language (SGML). HTML5 has improved parsing rules providing enhanced compatibility.

Related Searches to Difference between HTML and HTML5 - HTML vs HTML5