Following are the various differences between HTML and HTML5:
Attributes of Async, charset, and ping are available in HTML5. The same is not available in HTML.
1. Doctype Declaration
HTML features a long and complicated doctype declaration. The same is simple and easy in HTML5.
While HTML5 provides support for the drag-and-drop effect, HTML has no provision for it.
3. Drawing Geometric Shapes
There is no way of drawing shapes like circles, rectangles, and triangles in HTML. The same can be drawn in HTML5.
4. High-level Video and Audio Support
High-level audio and video support isn't a part of the HTML specifications. HTML5 offers out-of-the-box high-level audio and video support.
5. In-text Use
MathML and SVG can be used in text in HTML5. The same is not possible in HTML.
HTML is not mobile-ready. HTML5 specifications involve emphasis on mobile-friendliness.
There is no persistent storage option available in HTML. Only browser cache is used as temporary storage. HTML5 allows permanent storage with an application cache, Web SQL database, and web storage.
9. Vector Graphics
HTML5 provides support for Canvas, SVG, and other virtual vector graphics. Implementing vector graphics in HTML is only possible using third-party plugins like Silverlight and VML.
Posted Date:- 2021-08-26 01:28:33