html2xhtml

An open-source converter from HTML to XHTML

Introduction

Html2xhtml converts HTML files into XHTML. It can fix many common errors in HTML files (e.g. missing end tags, elements with incorrect content model, non-standard elements or attributes, etc.) The output document type can be selected among several XHTML DTDs (1.0, 1.1, Basic, etc.).

Convert your document online:

Output document type (*):

Translation options:

Indentation length: Line length:

Input HTML document:

If you are looking for an understandable and browsable list and description of the elements and attributes of each XHTML document type, take a look at the xhtmlpedia.

Feedback about this service is highly appreciated. Please, e-mail to jaf__at__it.uc3m.es. For bug reports, please, include as much information as possible: input and output documents, a description of the error, date of the translation, etc.

(*)Warning: due to restrictions to the use of legacy HTML elements and attributes in XHTML 1.0 strict, XHTML 1.1, XHTML Basic 1.0, XHTML Basic 1.1, XHTML Print 1.0 and XHTML Mobile Profile, any style information that is not encoded using CSS may be lost when the target document type is one of the above. If you want to keep your legacy style information, you can safely use the "auto" option.

Latest news

RSS news feed RSS 2.0 news feed | Read all the news items

[11-05-2009] Released html2xhtml 1.1.2 A new stable version of html2xhtml (1.1.2) has been released. Go to the download page.

[07-03-2009] Published html2xhtml 1.1.2 release candidate 3 This version contains some changes to make html2xhtml be more robust against several kinds of errors in input HTML documents. Go to the download page.

[06-30-2009] Published html2xhtml 1.1.2 release candidate 2 The new version provides fixes to some bugs reported by users. Go to the download page.

[04-13-2009] Published html2xhtml 1.1.2 release candidate 1 The first release candidate for the next stable release is now available. Go to the download page.

[06-17-2008] Released html2xhtml 1.1.1 Finally, the GPL version of html2xhtml has been released as stable (version 1.1.1). Go to the download page.

References

html2xhtml logo html2xhtml, copyright 2001-2009 Jesús Arias Fisteus; 2001 Rebeca Díaz Redondo, Ana Fernández Vilas