Creation | Body |
HTML_Page2 | |
PEAR Manual | |
The method you surely will use is setTitle() that sets the title of the page; the one that your browser displays in its title/window bar.
|
Meta tags can be set with setMetaData() which takes two parameters, the tag name and the content.
|
A link to a bookmark icon (favicon) can be set using addFavicon() .
Links to related pages (previous, next, home etc.) are added with addHeadLink() - the first parameter determines the URL, the second the relation.
|
A HTML page may contain two types of stylesheets: Inline css and a link to external .css file.
Inline CSS declarations are made with addStyleDeclaration()
|
Links to external CSS files are created by using addStyleSheet(). The optional third parameter determines which media type the stylesheet shall be used for.
|
You may want to add some javascript code to your page; either inline or link to an external .js file.
Inline code blocks are added with addScriptDeclaration() . The optional second parameter defaults to text/javascript but can be changed as needed.
|
Links to external script files are created by using addScript().
|
Creation | Body |
HTML_Page2 | |
PEAR Manual | |