Added methods for creating Code and HtmlCode elements.