If you plan on using your own custom HTML, it is always smart to make sure that you have properly nested tags, and check that the HTML code is valid.
Please use the following validator on your HTML code that you have created. (http://validator.w3.org/)
This will parse through your HTML and will check web documents in formats like HTML and XHTML for confirmance to W3C recommendations and other standards.