+ 1
Hello, what's the difference between a HTML 4 document and HTML 5 document?
3 Answers
+ 2
HTML4
1. Doctype declaration = <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
2. There is no sectioning elements, we can only rely on div element which lack semantic meaning
HTML5
1. Doctype declaration = <!DOCTYPE html>
2. Sectioning elements such as header, main, article, section, nav, footer, etc
3. New input attributes, such as email, URLs, date and time, search, etc.
4. New elements such as audio and video element
5. New APIs such as geolocation and local storage
- 1
HTML5 does not work on Internet Explorer.