Added support to specify tag format

Used for instance to render style sheets for print media.