mPDF Manual – HTML control tags

htmlpageheader

(mPDF ≥ 2.0)

htmlpageheader – Define an HTML page header with a given name

Description

<htmlpageheader  $name  > $html </htmlpageheader>

Define an HTML page header with a given name. Named headers can be referenced and set later in the document e.g. <sethtmlpageheader>

Attributes

$name

This attribute is a text string to use as the name for this header.

If name is BLANK or omitted, it is set as _default.

Content

$html

Any valid HTML code can be enclosed between the tags, and will be parsed by mPDF as for any other content.

Changelog

Version Description
2.0 The tag was added.

Examples

For examples and further information please see:

See Also

Fork me on GitHub