# Special HTML Tags and Attributes

The HTML components use several non-standard Tags which may be used for special purposes.

<PAGE>

Attributes:

none

The <PAGE> tag causes printing to end on the current page and a new page started. It has no effect on the displayed document.

Note: The <PAGE> tag does not work correctly in documents which use CSS absolute positioning. Use the CSS page-break properties instead.

<PANEL>

Attributes:

NAME=string

TYPE=string

SRC=string

ALT=string

HEIGHT=n

WIDTH=n

ALIGN=top|middle|bottom|left|right

HSPACE=n

The <PANEL> tag may be used to place a ThvPanel in a displayed HTML document. The ThvPanel in turn may be used as a base for adding other Delphi VCL components. For all practical purposes, ThvPanel is equivalent to TPanel.

<PANEL> is similar in usage to the <IMG> tag and may be used anywhere an <IMG> might be appropriate. When the ThvPanel is created at load time, an OnPanelCreate event is generated. When the document is disposed of, there is an OnPanelDestroy event. These events allow the programmer to manage the contents of the panel.

The NAME, TYPE, and SRC attributes are passed as parameters in the OnPanelCreate event and NAME is also assigned to the Panel's Name property. TYPE and SRC are not otherwise used and are there for the programmer's convenience. The ALT string appears when the document is printed if there is no OnPanelPrint event handler.

The HEIGHT, WIDTH, ALIGN, and HSPACE attributes are similar to those of the <IMG> tag.

By default, the panel is displayed with a white background and a black border. However, these and other properties may be changed in the OnPanelCreate event handler. The only properties which can't be changed at that time are the Top and Left properties. Even the Height and Width may be changed in the handler.

Special Note:

The <OBJECT> tag also has a similar OnObjectTag event which produces a ThvPanel to be used as a base for the object.

## See Also:

OnPanelCreate Event

OnPanelDestroy Event

OnPanelPrint Event

OnObjectTag Event