The acidity and pKa values depend on the stability of a conjugate base. The nature of the element, electronegativity, resonance and hybridization contribute to the acid strength.