Let H ⊂ X. Prove that H is compact if

Let H ⊂ X. Prove that H is compact if and only if every cover {Ea)a∈A of H, where the Ea's are relatively open in H, has a finite subcover.