a) its called a defogger.

b) the lines are metal/metallic strips that are connected to a heating element. since metals are good conductors for heat, it transfers heat throughout the lines.