http://www.rgagnon.com/javadetails/java-html-to-pdf-using-itext.html

Using iText HTMLWorker, you can produce PDF version of an HTML document. The document must be simple. Many things like FORM elements or external images are not supported.

This was done with iText 2.1.3. If using a newer version like 5.1.0, you need to adjust the import :

import com.lowagie….; –> import com.itextpdf….;

 

As you can see, the validity of the parsed HTML (using HTMLWorker) is very relax. Closing tags are not required : <BR> is ok (<BR/> is not mandatory).
HTMLWorker is ok with older iText version but the recommended approach with new iText is to use the XMLWorker. XMLWorker is stricter since you must send XHTML document to it.

Note : To get the color on a table cell, you need to use a style because the bgcolor attribute is not supported. By default, FORM elements are not rendered. Review this document to see what is supported : http://demo.itextsupport.com/xmlworker/doc.html