How does commenting in HTML differ from XML?

  • Both use
  • HTML uses /* */ and XML uses
  • HTML uses // and XML uses
  • HTML uses and XML uses /* */. 
Both HTML and XML use the same syntax for commenting, which is . However, the context in which they're used differs. While HTML is primarily used for web content structuring, XML is a markup language that defines rules for encoding documents in a format that both humans and machines can read. 
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *