Describes the occurrence of the attachment of a glycan (mono- or polysaccharide) to a residue of a protein.