What is the difference between HTML and XHTML?
What is the difference between HTML and XHTML? Are they the same web language or do they differ in function? I am confuse. Please, explain it to me.
Thanks.
What is the difference between HTML and XHTML? Are they the same web language or do they differ in function? I am confuse. Please, explain it to me.
Thanks.
Â
There are only few differences but these differences are very important ones that provides major impact. XHTML tags should be in small letters and should be closed appropriately.
XHTML stands for Extensible Hypertext Markup Language. It is the reformulation of the previous HTML 4.0 as an application of XML or Extensible Markup Language. In XHTML, every HTML 4 markup attributes and elements will be supported continuously. XHTML can also be extended by anyone who uses it which is not possible with HTML. You can add and define new attributes and elements which make it possible for new ways to embed programming and content in a web page.
HTML stands for Hypertext Markup Language. It is a set of codes or markup symbols inserted in a file or document which is designed to be displayed on a web browser. The markup instructs the web browser how it should display the page’s images and words for the user. Every markup code used in the HTML is referred to as an element though many users call it as a tag.
In HTML, there are elements that come in pairs which specifies when a display effect should begin and when it should end.