I've been asked in interview, what is the difference between HTML
, DHTML
and XHTML
?
Can anyone please tell me what are the main differences with small example and why the XHTML
and DHTML
is faster than HTML
?
I've been asked in interview, what is the difference between HTML
, DHTML
and XHTML
?
Can anyone please tell me what are the main differences with small example and why the XHTML
and DHTML
is faster than HTML
?
HTML is a markup language for describing the structure and semantics of text and its relationships to other documents.
DHTML is a term given to "HTML with some JavaScript" which was briefly popular in the late 1990s. It isn't faster than HTML.
XHTML is HTML expressed in XML. It is of little practical value. In theory, the simpler nature of XML combined with rules forbidding certain kinds of error handling mean that an XHTML parser could be faster than an HTML one. In practise this isn't that case because since real XHTML (rather than HTML with an XHTML DOCTYPE) was never all that popular, no major browser vendor actually optimised their XHTML parsers that much.
Nothing of those has anything relevant to do with performance (like saying DHTML is faster then HTML).