HTML Tag Support
- 2 minutes to read
Supported Tags
The table below lists HTML tags supported by the RichEditControl. External links are currently processed for inline pictures and style sheets (css files). The ID and Class attributes are interpreted for all tags, including the unlisted ones. These attributes are used to specify a style applied to the document part defined by a certain tag.
Tag | Attribute(s) | Notes |
---|---|---|
a | dir | |
b | dir | |
base | ||
basefont | size color face dir | |
big | dir | |
blockquote | dir | |
br | dir | |
center | dir | |
code | dir | |
div | page-break-before page-break-after page-break-inside background-color border (CSS) dir | Only if set to always. Only if set to avoid. Only if set to avoid. |
em | dir | |
font | size color face dir | |
h1-h6 | align dir | Specify the corresponding paragraph’s Paragraph.OutlineLevel property to mark the text in HTML output with H1 - H6 tags. Paragraphs with outline levels higher than 6 are exported as text enclosed in a P tag. |
head | ||
hr | align color noshade size width | |
html | ||
hr | ||
i | dir | |
img | align src height width | If not specified, the image is considered as inline. |
li | type value dir | |
link | href type media dir | |
meta | ||
ol | type value align dir | |
p | align dir | |
script | Text inside this tag is ignored. | |
small | ||
span | ||
strike | dir | |
strong | dir | |
style | ||
sub | dir | |
sup | dir | |
table | align bgcolor border bordercolor cellpadding cellspacing dir width | The dir attribute reorders table columns and applies the table indent (specified by the Indent property) to the right side of the table. |
td | align bgcolor bordercolor colspan height nowrap rowspan text-align valign width | Supported in the Internet Explorer only. Sets the TableCellPropertiesBase.NoWrap property. RichEditControl’s interpretation of this attribute is different from the HTML browser. |
th | any allowed | |
tr | align bgcolor bordercolor height text-align valign | Supported in the Internet Explorer only. |
title | Text inside this tag is ignored. | |
u | dir | |
ul | dir |
Unsupported Tags
- <base> tag with href attribute;
- <div> tag with align and float css attribute;
- <li> tag with list-style-image css attribute;
- <margin> tag;
- <tab> tag;
- <table> tag with cols attribute;
- <td> tab with bordercolor and nowrap attributes;
- !important declaration;
- word-wrap and break-word css properties;
- css3 shapes;
- <ui> tag with type attribute.