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>
Note: Do not name any header or footer starting with html_
- This prefix is reserved to identify an
HTML header/footer when passing its name in a reference.
Note: Remember that, unlike most mPDF custom tags which are self-closing with />
, htmlpageheader
and htmlpagefooter require end tags.
If you wish to make the HTML code compatible with browsers, see Custom tags
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: