Supported Tags
The following list displays tags that are supported by the
HTMLLabel and HTMLView controls. If the control finds a tag which is not recognised, it will raise
the UnknownTag event will be raised. Some tags support parameters. As
with tags, if a parameter is found which is not recognised the control will raise the UnknownParameter event.
- <b>, </b>, <strong>,
</strong>
Applies or removes bold formatting
- <i>, </i>, <em>, </em>
Applies or removes italic formatting.
- <u>, </u>
Applies or removes underline formatting.
- <s>, </s>, <strike>,
</strike>
Applies or removes strikethrough formatting
- <a>, </a>
Creates a hyperlink. You can use
the AnchorClick, AnchorMouseEnter and AnchorMouseExit
events to process hyperlinks.
The following parameters can be used for this tag:
- href
The reference string.
- title
A tooltip which is automatically displayed by the HTMLLabel control
when the mouse hovers over the anchor
- <p>, </p>
Starts and ends a paragraph.
- <br>
Inserts a line break
- <hr>
Inserts a horizontal line
- <ul>, </ul>
Starts and ends an indented list which uses bullets for each item. Although
multiple levels of nesting are supported, the same bullet will be used for
each level.
- <ol>, </ol>
Starts and ends an indented list which uses numbers for each item. Multiple
nesting levels of this tag are not currently supported.
- <li>, </li>
Starts and ends a bulleted or numbered item in a list
- <font>, </font>
Starts and ends a font formatting string
The following parameters can be used for this tag:
- face
Sets the font face name
- size
Sets the font size
- color
Sets the font color - only standard hex format (#RRGGBB) is currently
supported
Also, the following codes will be translated to
their reserved characters:
-
Inserts a space
- &
Inserts an ampersand (&)
- <
Inserts a less-than sign (<)
- >
Inserts a greater-than sign (>)
- "
Inserts a double quote (")
Notes on attribute parameters:
If a tag supports parameters with values, you can either surround the value with
double quotes, or nothing. However, if the value contains a
space, then it must be quoted, otherwise it
will be classed as another name and value pair.