Use the HtmlTextWriter.WriteAttribute(string, string) method to write markup attributes and their values with no encoding. The HtmlTextWriter.WriteAttribute(string, string) method writes the attribute value enclosed in double quotation marks ("). If value is null, the HtmlTextWriter.WriteAttribute(string, string) method writes only the attribute name.