Give an example where HTML could be preferred over XML.

Q4. Give an example where HTML could be preferred over XML.

Ans. HTML focuses on appearance of data; whereas, XML focuses on data description. In cases where we need to prepare a Web document that contains Web pages with colorful backgrounds, well formatted text, attractive images, and embedded audios and videos, XML is preferred over HTML.

Leave a Reply

Your email address will not be published. Required fields are marked *

9 Views
%d bloggers like this: