There are many differences between HTML and XML. The following article will introduce to you what are HTML and XML? What is the difference between HTML and XML difference?

the
What is HTML?
HTML (Hypertext Markup Language) is a markup language used to create web pages and web applications. With HTML, we can create our own static pages. It is used to display data, not transmit it.
HTML is a combination of hypertext and markup languages. Hypertext defines links between web pages. Markup languages are used to define text documents within markup that define the structure of a web page. This language is used to annotate (take notes for the computer) text so that the machine can understand it and manipulate the text accordingly.
example:
Site Title
Headline
paragraph, a test text!
What is XML?
XML (Extensible Markup Language) is also used to create web pages and web applications; it is dynamic because it is used to transfer data rather than display it.
XML’s design goals focus on simplicity, generality, and usability on the Internet. It is a text data format that provides strong support for different human languages through Unicode. Although XML was designed primarily with a focus on documents, the language is widely used to represent arbitrary data structures, such as those used in web services.
example:
Xiao Ming
2345456767
Differences between HTML and XML
HTML | XML |
---|---|
HTML stands for Hypertext Markup Language. | XML stands for Extensible Markup Language. |
HTML is static and used to display data. | XML is dynamic and used to transfer data. |
HTML is a markup language. | XML provides a framework for defining markup languages. |
HTML can ignore small mistakes. | XML not allowed error. |
HTML is not case sensitive. | XML is case sensitive. |
HTML tag is a predefined tag. | XML tags are user-defined tags. |
There are a limited number of tags in HTML. | XML tags are extensible. |
HTML does not reserve spaces. | XML can retain spaces. |
In HTML, no closing tag is required. | In XML, closing tags are required. |