The DocBook site says it "is a schema (available in several languages including RELAX NG, SGML and XML DTDs, and W3C XML Schema) maintained by the DocBook Technical Committee of OASIS." To put it in plain English, DocBook is a list of markup elements suitable for writing Documents and Books, hence the name. It's like HTML, in a sense that it has tags and uses plain text files, but unlike HTML, it’s more suitable for writing books. DocBook has no idea how your final document will look like. That's the job of the DocBook toolkit. When we want to start a new paragraph in HTML, we use aHTML and CSS address different media by using a stylesheet for the media itself. For example, a document targeted for print or handhelds might have the following line:The stylesheet would have a tag specifying the media type:paragraph
tag. The browser knows how to display a paragraph tag, it knows that it should insert a margin above and below. DocBook, following the same concept, uses a tag. DocBook uses a toolkit to read DocBook files and generate final documents. A toolkit has tools to validate DocBook files, apply formatting, import images, according to a set of rules defined in stylesheets.
@media print { /* style sheet for print goes here */ }This is a good way to manage media in HTML, but HTML still translates poorly to books, and compliance with CSS levels is various browsers is still unreliable. DocBook uses purely semantic tags for everything. Instead of , there's or . Instead of