+ 2
What's the difference between HTML and HTML5?
And which is commonly used?
3 Antworten
+ 15
HTML5 is commonly used. The difference was described in Sololearn course.
https://www.sololearn.com/discuss/577/?ref=app
+ 2
HTML5 is latest approved(by WWC) version of HTML. It contains some enhancements and new tags such as audio/video which standardize multimedia file inclusion and also SVG graphics for animation effects.
+ 1
Html Html5
Doctype declaration in Html is too longer
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> DOCTYPE declaration in Html5 is very simple "<!DOCTYPE html>
character encoding in Html is also longer
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> character encoding (charset) declaration is also very simple <meta charset="UTF-8">
Audio and Video are not part of HTML4 Audio and Videos are integral part of HTML5 e.g. <audio> and <video> tags.
Vector Graphics is possible with the help of technologies such as VML, Silverlight, Flash etc Vector graphics is integral part of HTML5 e.g. SVG and canvas
It is almost impossible to get true GeoLocation of user browsing any website especially if it comes to mobile devices. JS GeoLocation API in HTML5 helps identify location of user browsing any website (provided user allows it)
Html5 use cookies. It provides local storage in place of cookies.
Not possible to draw shapes like circle, rectangle, triangle. Using Html5 you can draw shapes like circle, rectangle, triangle.