Page tree
Skip to end of metadata
Go to start of metadata
Icon

HTMLToWord is an open source project from SoftArtisans. It can be downloaded from SourceForge.net.

The following table lists the HTML tags that HTMLToWord explicitly supports.

The contents of HTML tags not listed in the table below (or custom XHTML tags in your document) will be inserted into the document as text. You can control this default behavior by setting the AcceptUnknownTags and IncludeContentsOfUnknownTags properties found in the InsertHTMLProperties property container and by implementing the InsertDelegate and FormatDelegate delegate methods.

HTML Tag

Description

Support Level

a

Inserts a hyperlink.

Supported: HTTP-protocol hrefs

Unsupported: https, mailto or ftp protocols in the href attribute and the name attribute.

Partial

b

Renders the text as bold.

Full

blockquote

Offsets text and narrows the left and right margins.

Full

br

Insert a line break.

Full

code

Renders the text in-line with a mono-spaced font.

Full

del

Renders text as strike-through.

Supported: In-line elements.

Unsupported: Block-level elements.

Partial

dir

Inserts an unordered list into the document. (Note, this tag is deprecated as of HTML 4.01.)

Full

div

Mimics HTML by separating content from surrounding text.

Unsupported: Does not support any attributes.

Partial

em

Renders the text as italics.

Full

font

Changes the font face, font size and/or font color. Size can be either absolute or relative. If given a comma-separated list of faces, uses the first face only. Color can be either a name or an HTML code, such as #FFFFFF for white.

Full

h1 . . . h6

Applies styles corresponding to Microsoft Word styles H1 through H6.

Supported: Heading levels 1-6.

Unsupported: Align attribute.

Partial

i

Italicize text.

Full

img

Inserts an image in-line with the text. Relies on the GetImageDelegate method to retrieve the actual data bits of the image.

Supported: In-line images. Height and width attributes as absolute pixel sizes.

Unsupported: Floating or absolutely positioned images. Height and width specified as percentage, usemap attribute.

Partial

ins

Renders text as underlined.

Supported: In-line elements.

Unsupported: Block-level elements.

Partial

li

Creates a new item in the enclosing list.

Unsupported: Attributes.

Partial

menu

Inserts an unordered list into the document. (Note, this tag is deprecated as of HTML 4.01.)

Full

ol

Ordered (numbered) list.

Unsupported: Attributes.

Partial

p

Paragraph. The align attribute is supported.

Full

pre

Renders text in a mono-spaced font. Offsets block of text from surrounding text with an extra blank line before and after.

Unsupported: The width attribute is ignored.

Partial

s

Renders text as strikethrough.

Full

span

Used to specify characteristics for a section of text with a block.

Full

strike

Renders text as strikethrough.

Full

strong

Renders text as bold.

Full

style

HTMLToWord does not parse the style tag; however, users can parse a style using a delegate method.

Supported: User-supplied delegate method to handle styles.

Unsupported: Automatic parsing of styles.

Partial

sub

Renders text as subscript

Full

sup

Renders text as superscript

Full

table

Inserts a table into the document. Nested tables are supported.

Supported: bgcolor, border, cellpadding, cellspacing, frame, rules, and width attributes. Cellpadding and cellspacing attributes with absolute size values.

Unsupported: Cellpadding and cellspacing attributes with percentage values.

Partial

tbody

Body of a table.

Supported: tbody tags within the XHTML to denote the start of the body of the table.

Unsupported: Cell alignment attributes: align, char, charoff and valign.

Partial

td

Specifies the contents of a table cell.

Supported: The colspan, rowspan, align, valign, and bgcolor attributes.

Unsupported: The abbr, axis, headers, scope, nowrap, width, height, char and charoff attributes.

Partial

tr

Table row.

Full

tt

Renders text in a serifed, mono-spaced font (Courier New).

Full

u

Renders text as underlined.

Full

ul

Unordered (bulleted) list.

Unsupported: Attributes.

Partial

  • No labels