A terminal that can be simply joined in the atmosphere; an electrical apparatus including the terminal; and a method of attaching a terminal to a housing made of a metal material by which a passivation film is readily formed on a surface thereof are provided. A terminal can be fixedly adhered to a housing, and includes: a metal outer ring; a lead penetrating through the metal outer ring; and an insulating material providing sealing between the metal outer ring and the lead. The metal outer ring has a joint edge to be joined to the housing. A coating layer turning into a liquid phase at a temperature lower than a melting temperature of the housing is provided at least in the joint edge.