<css>

Description

Metadata element where inline css can be specified to be used for styling the document.

PDF, HTML, EPUB, MOBI

Metadata can contain up to one <css> element. Inner text will be treated as css and will be combined with other stylesheets specified. Inline css will always be placed as last set of css rules and can override rules specified using <stylesheet> elements.

Attributes

No attributes are defined for the <css> element.

Immediate descendants

No element descendants are defined for the <css> element.

Immediate ancestors

Element name Relation
<metadata> The enclosing metadata element.

Example

<document xmlns="http://boradoc.org/1.0">
  <metadata>
    <css target="pdf">
						h1 {
							text-decoration: line-through;
						}
					</css>
  </metadata>
  <chapter>
    <para>Main body.</para>
  </chapter>
</document>