Problem: Shown a connected subset in R is an interval.

Proof so far:

I let a subset A to be connected in R, then A has Intermedian Value Property, thus for every continuous function f:A->A, f(A) is an interval.

Now since f(A) is an interval, A is an interval...

Am I right?