+ 4

HTML vs XML

HTML and XML are markup language . What is the difference and when to use it ?

1st Mar 2017, 2:34 AM
Lily Chong
Lily Chong - avatar
4 Answers
+ 10
HTML 1) Language for Presentation 2) Predefined Tags XML 1) Language for storage/transfer of Data 2) User-defined Tags
1st Mar 2017, 8:14 AM
Krishna Teja Yeluripati
Krishna Teja Yeluripati - avatar
+ 9
XML was designed to carry data - with the focus on what data is HTML was designed to display data - with the focus on how data looks XML tags are not predefined like HTML tags
1st Mar 2017, 6:32 AM
chris
chris - avatar
+ 4
Check my answer in your previous question, and do a search in Q&A discussions section about xml and xhtml: this question was already asked/answered a lot ^^
1st Mar 2017, 6:16 PM
visph
visph - avatar
+ 2
HTML for classic and web main XML for sitemap is a main use Alternative uses of XML is on REST API for maintain compatibility with old systems, currently JSON is the standard for interchange data. In other scenario on desktop apps xml is extended use for save user prefs. Use HTML and JSON and forget XML if web is you main business ;)
1st Mar 2017, 2:40 AM
nextco
nextco - avatar