Answer:
• HTML uses predefined element names, such as <p, <br, >, <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