NOVELTY - A gel electrolyte composition comprises optionally substituted pyridine; a metal salt containing alkali group (IA) metal cation linked to halogen anion; a halogen molecule; optionally substituted nicotinic acid; and a solvent, where the composition is optionally free from at least one of a polymer and a low molecular gelling agent.    USE - As gel electrolyte composition in dye-sensitized solar cell (claimed) and in ultra capacitors and lithium batteries.    ADVANTAGE - The composition is free from at least one of a polymer and a low molecular gelling agent. In the composition, the volatile amount of the electrolyte is reduced. Using the composition, the problems of evaporation and loss are mitigated, the lifetime of the cell is prolonged, the difficulties in the packaging process are reduced and the stability of the cell is enhanced. The fabrication method of composition is simple and economical. The electrolyte composition with a particular type of salt mixed in it achieves gelling of the electrolyte composition. The lifetime of the dye-sensitized solar cell is extended and malfunction of the packaging is reduced to further improve the industrial applicability of the cell. The solar cells comprising the composition are capable of maintaining energy performance and are environmentally friendly. The solar cells are safe to use and pollution-free.    DETAILED DESCRIPTION - A gel electrolyte composition comprises optionally substituted pyridine of formula pyridine (substituted on 2-position by R1, on 3-position by R2, on 4-position by R3, on 5-position by R4 and on 6-position by R5) (I); a metal salt of formula MY'; a halogen molecule; a optionally substituted nicotinic acid of formula (II); and a solvent, where the composition is optionally free from at least one of a polymer and a low molecular gelling agent.    R1 to R5=hydrogen, alkyl, hydroxymethyl, vinyl or hydroxyl;    M=an alkali group (IA) metal cation;    Y'=a halogen anion;    R6 to R9=hydrogen, alkyl, hydroxyl, amino, trifluoromethyl or halogen;    R10=CnH2n+1 alkyl;    n=1 to 12;    X=iodide ion, bromide ion, ClO4-, CF3SO3-, SCN-, PF6- or BF4-.    INDEPENDENT CLAIMS are included for the following:    (1) a dye-sensitized solar cell, comprising: a working electrode; a counter electrode, disposed corresponding to the working electrode; and the gel electrolyte composition, disposed between the working electrode and the counter electrode; and    (2) a method for preparing the gel electrolyte composition involving dissolving the optionally substituted nicotinic acid and the halogen molecule in the solvent to form a first solution; adding the metal salt MY' into the first solution; adding the optionally substituted pyridine into the first solution to form a second solution; and stirring the second solution to gel the second solution and form the gel electrolyte composition; or mixing the ingredients.