Html vs xml | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 2

Html vs xml

What is the difference html vs xml

9th Sep 2020, 3:11 AM
Hriday Kalita
2 Answers
+ 6
HTML is specific to websites. XML is much more general purpose. It is for data interchange with many different file formats. Here are some examples of XML languages: XHTML is an XML language for representing very much the same information from HTML. SVG is an XML language for representing vector graphics images. XSL is an XML language for declaring how many XML languages can be converted into other XML languages. XSD - XML Schema Definition is a language for validating XML documents. Some small differences exist in how tags close. HTML5 lets you close empty tags without any /. For example, <input> is fine for HTML5 but XHTML and XML would require something like <input />. XML has namespaces, DTD's and more complexity also.
9th Sep 2020, 3:14 AM
Josh Greig
Josh Greig - avatar
+ 1
Thanks for help
9th Sep 2020, 3:15 AM
Hriday Kalita