The HtmlTextWriter class implementation of the OnTagRender method always returns true. The OnTagRender overrides can determine whether an element will be rendered to the page.
Notes to Inheritors:
If you inherit from the HtmlTextWriter class, you can override the OnTagRender method to return false to prevent a markup element from being rendered at all or for a particular markup language. For example, if you do not want the object that is derived from HtmlTextWriter to render the <font> element, you can override the OnTagRender method to return false when a page is requested that contains a <font> element.