O'Reilly logo

Sams Teach Yourself XML in 10 Minutes by Andrew H. Watt

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Separating Content from Presentation

When most Web programming was done on a small scale by individuals, the problems arising from mixing content and presentation existed but weren’t a major problem for small-scale HTML users. If you had to make many individual changes, the total number was unlikely to be enormous.

One of the disadvantages of HTML for large projects is that content and presentation are entangled. An h1 tag indicates that the contained text is a heading, but, depending on the way the browser is configured, it also indicates something about how the text is to be displayed. Increasingly, HTML documents separate presentation from content by using Cascading Style Sheets (CSS).

In XML, by contrast, typically a document describes only ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required