Here I think it is implict that we have to use the metric induced by the norm. Also, an isometry here means a surjective function that preserves distances between points.
Well, I tried to find a isometric embedding that is also surjective. But I couldn't, and I think that the function that solves my problem isn't to intuitive (so I won't find it too easily) and so I came here asking for it... (hope this isn't duplicated).
My bounded creativity suggested me only $\varphi(f)(x)=f(x)b +(1-f(x))a$, but I think $\varphi$ is not surjective (and it doesn't even preserves distances hehe :/)
Help me, please!
If $X$ and $Y$ are homeomorphic spaces, with homeomorphism $h: X \to Y$, define
$F: C(X) \to C(Y)$ by $F(f) = f \circ h^{-1} \in C(Y)$ for $f \in C(X)$.
$\|F(f)\|_\infty$ is just the supremum all its of absolute values over the domain and as the $h$ just shuffles the domains bijectively, the suprema will be the same in either case (these suprema are even assumed as the spaces are compact, but we don't need that even because all functions under consideration are bounded). So $F$ is an isometry (and linear too).
Now note that $[0,1]\simeq [a,b]$.