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.