Enum HtmlVersion

Enum HtmlVersion

Namespace: Aspose.Words.Saving
Assembly: Aspose.Words.dll (25.3.0)

Indicates the version of HTML is used when saving the document to Aspose.Words.SaveFormat.Html and Aspose.Words.SaveFormat.Mhtml formats.

public enum HtmlVersion

Fields

Html5 = 1

Saves the document in compliance with the HTML 5 standard.

Xhtml = 0

Saves the document in compliance with the XHTML 1.0 Transitional standard.

Aspose.Words aims to output XHTML according to the XHTML 1.0 Transitional standard, but the output will not always validate against the DTD. Some structures inside a Microsoft Word document are hard or impossible to map to a document that will validate against the XHTML schema. For example, XHTML does not allow nested lists (UL cannot be nested inside another UL element), but in Microsoft Word document multilevel lists occur quite often.