[Master Answer Logo]
Question

How do I write single source documents?

Answer

In this way, XML contrasts with HTML, which has an inflexible, single-purpose vocabulary of elements and attributes that, in general, cannot be repurposed. With XML, it is much easier to write software that accesses the document's information, since the data structures are expressed in a formal, relatively simple way.

— Source: Wikipedia (www.wikipedia.org)