We have electrodeposited Co-Pt films of different composition and thickness containing several percent of phosphorous. Very high coercivities (up to 5500 Oe) have been obtained at 70-80 at%Co. Coercivity lowers for higher Pt content. A clear correlation is observed between Hc and structural properties.