One of the five classes of immunoglobulins ; it is present primarily in the skin and mucous membranes and is believed to function in response to environmental antigens and to play a role in allergic reactions.