Homosexuality is a term introduced to denote (and later primarily used with a negative connotation) the sexual attraction of an individual to people of the same sex and sexual relations between them.
The term "pedophilia" in psychiatry and psychology is considered a deviation from sexual norms.