Hello, what's the difference between a HTML 4 document and HTML 5 document? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Hello, what's the difference between a HTML 4 document and HTML 5 document?

https://code.sololearn.com/WQh18MgwXzRX/?ref=app

8th Oct 2019, 10:53 AM
Nfamara Ceesay
Nfamara Ceesay - avatar
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
8th Oct 2019, 11:17 AM
Rizky
Rizky - avatar
8th Oct 2019, 11:30 AM
Seb TheS
Seb TheS - avatar
- 1
HTML5 does not work on Internet Explorer.
8th Oct 2019, 11:08 AM
Seb TheS
Seb TheS - avatar