0% found this document useful (0 votes)
178 views1 page

HTML-XML Difference Faqs

XML and HTML have some key differences - XML provides user-definable tags while HTML has a defined set of tags for web display. XML is content-driven and end tags are essential, whereas HTML is format-driven and end tags are not always required. XML also requires quotes around attribute values and a slash in empty tags.

Uploaded by

Umar Ali
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
178 views1 page

HTML-XML Difference Faqs

XML and HTML have some key differences - XML provides user-definable tags while HTML has a defined set of tags for web display. XML is content-driven and end tags are essential, whereas HTML is format-driven and end tags are not always required. XML also requires quotes around attribute values and a slash in empty tags.

Uploaded by

Umar Ali
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 1

1) What are differences between XML and HTML?

S.N XML HTML


o
1 XML provides user definable HTML provides defined set of
tags tags designed for web display
2 XML is content driven HTML is format driven
3 End tags are essential in a End tags are not always
well formed XML document. In required.<HTML> tag needs an
a well formed document, equivalent </HTML> tag but
elements can be defined as <br> tag does not require
single tag or a pair of tags like </br> tag
<student/> or the
<student>…</student> pair
4 Quotes required around Quotes are not required for the
attribute values values of attributes
5 Slash required in empty tags Slash not required
6 XML is used for describing HTML is used for designing
data pages

You might also like