Html4 and html5 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Html4 and html5

what is the difference between html4 and html5

15th Jun 2017, 11:27 AM
Taiwo Seun
Taiwo Seun - avatar
5 Answers
+ 5
Wow! @@ @Abdur-Rahmaan wrote: << html4 is also known as xhtml >> ABSOLUTLY NOT!!! Xhtml was designed at same times than Html4, so they share most of specifications, but they are radically different under the hood: HTML is based on SGML, while XHTML was a totally new developent branch based on XML (and accessory XML is based on SGML), so they don't stricly shares the sames syntaxic rules... Html is more permissive than XHtml (so second don't let pass any syntax errors, while first is expected to be auto-corrected by browsers if needed), and almost XHtml was abandonned to profit of Html5. The only right thing, is that Html4 and XHtml are same generation version of Html, but they require totally different <!DOCTYPE> Anyway, there's absolutly no serious reason to use deprecated versions, rather use more powerful last version, even if browsers continue to maintain a backward compatibility ^^
15th Jun 2017, 4:00 PM
visph
visph - avatar
+ 4
HTML 5 is upgrade version of HTML 4
15th Jun 2017, 3:42 PM
#Happy@777
#Happy@777 - avatar
+ 3
html5 added many new attributes it stopped supporting some of html4 html4 is also known as xhtml -> FALSE
15th Jun 2017, 11:32 AM
Abdur-Rahmaan Janhangeer
Abdur-Rahmaan Janhangeer - avatar
15th Jun 2017, 11:40 AM
Kailash Loncha
Kailash Loncha - avatar
+ 1
abdur is right you should use html 5😊
15th Jun 2017, 12:15 PM
Hbeo
Hbeo - avatar