HTML vs. XML

Main Difference

Both HTML and XML are the Markup Languages extended from SGML. Main difference is their purpose of designing. HTML was designed for data display to focus the data look. XML was designed for storing and transporting data. HTML was invented in 1990 while XML was invented in 1996. HTML is static type while XML is dynamic type.

HTML vs. XML — Is There a Difference?
ADVERTISEMENT

Difference Between HTML and XML

HTML vs. XML

HTML was designed for data display to focus the data look while XML was designed for storing and transporting data.

HTML vs. XML

HTML is used for displaying web pages while XML does not used for displaying web pages.

HTML vs. XML

HTML was invented in 1990 while XML was invented in 1996.

HTML vs. XML

HTML is static type while MXL is dynamic type.

HTML vs. XML

in XML author can create custom tags but in HTML custom tags are predefined.

HTML vs. XML

XML can preserve white spaces while XML can't preserve white spaces.

ADVERTISEMENT

HTML vs. XML

HTML is presentation type language while XML is neither a presentation type language not programming type.

HTML vs. XML

HTML don't have strict rules of processing while XML has to follow strict rule otherwise processing file will be terminated.

Htmlnoun

a set of tags and rules (conforming to SGML) for using them in developing hypertext documents

What is HTML?

HTML is the Markup language used for web page display and designed for data display to focus the data look. HTML is static type and extended form SGML. It was invented in 1990 with Presentation type language. Its tags are predefined and white spaces cannot be preserved in HTML. HTML don’t have strict rules of processing.

What is XML?

XML is the Markup language designed for storing and transporting data. It is the set of rules to make data readable for human and machine by encoding data. It is dynamic type invented in 1996. Author can create custom tags using XML and it preserves white spaces. XML is neither a presentation type language not programming type. XML has to follow strict rule otherwise processing file will be terminated.