0

What is the difference between html and xhtml?

3rd Jun 2016, 12:04 AM
Daniel Bampoe
Daniel Bampoe - avatar
3 Answers
+ 2
HTML = Hypertext Markup Language. XHTML = eXtensible Hypertext Markup Language. They're almost identical. XHTML is stricter and doesn't allow bad code. It's HTML redesigned as XML, which is a tool for transporting and storing data between an application and a database. In XTML all tags must be closed and have lowercase. XHTML DOCTYPE and the xmlns attribute in <html> are mandatory. These are some of the differences. Google "html vs xtml" for more info.
3rd Jun 2016, 1:05 AM
ZinC
ZinC - avatar
0
Thanks
3rd Jun 2016, 10:30 AM
Daniel Bampoe
Daniel Bampoe - avatar
- 1
Long story short, XHTML is HTML that follows XML rules.
4th Jun 2016, 9:38 AM
Gabe Rust
Gabe Rust - avatar