public static string CreateImage(string source, string alt, string title) { ElementBuilder img = new ElementBuilder(IMG); img.AddAttributes(SRC, source); img.AddAttributes(ALT, alt); img.AddAttributes(TITLE, title); return img.ToString(); }
public static string CreateInput(string type, string name, string value) { ElementBuilder input = new ElementBuilder(INPUT); input.AddAttributes(TYPE, type); input.AddAttributes(NAME, name); input.AddAttributes(VALUE, value); return input.ToString(); }