What are the differences between HTML and XML?

 Posted by Tripati_tutu on 10/14/2010 | Category: Web Services, Remoting Interview questions | Views: 3222 | Points: 40

• HTML uses predefined element names, such as &ltp, &ltbr, &gt, <p> and <br>. In XML, you create your own element names to identify hierarchical nodes of data.

• XML syntax is much stricter than HTML: such as elements must always have end-tags, element names are case sensitive, attribute values must always be enclosed in quotation marks, and nested elements must be terminated within their parent elements.

• XML identifies data conceptually based on the data content, rather than based on the type of formatting to apply but in HTML it identifies the data based on the formatting.

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response