Starting from the hypothesis that $f:[0,1]\rightarrow \mathbb{R}$ is a continuous function (on a compact set $[0,1]$) satisfying $f(0)>0$ and $f(1)=0$ one has in particular that there exist $c,d \in [0,1]$ such that
$\displaystyle f(c)=\inf_{x\in [0,1]} f(x)$ and $\displaystyle f(d)=\sup_{x \in [0,1]}f(x)$.
In particular, one has the flag of inequalities
$$f(c)\leq f(1)=0<f(0)\leq f(d).$$
The proof that $f(x_0)=0$ for some $0\leq x_0<1$ is a direct consequence for the intermediate value theorem for continuous functions. Indeed, if $f(c)=0$ then $x_0$ is a root of the equation $f(x)$ on the interval $[0,x_0]$. Otherwise, one has $f(c)<0<f(0)$ together with the continuity condition assures the existence of $x_0$ such that $f(x_0)=0$ fulfils on the open interval $(0,c)$.
The proof that the inequality $f(x)>0$ holds on the interval $0\leq x<x_0$ is a natural consequence of the continuity of the function on the point $0$.
In concrete, for every $\varepsilon>0$ it is possible to find a $\delta>0$ such that for every $x \in (-\delta,\delta)\cap [0,x_0)$ there holds
$$ -\varepsilon<f(x)-f(0)<\varepsilon.$$
In particular, for the choice $\varepsilon=f(0)$ we then have that $f(x)>0$ in a neighborhood $(0,\delta)$ of the interval $[0,x_0)$ ($\delta\leq x_0$). This proves that $f(x)>0$ on $(0,x_0)$. Thereby $f(x)>0$ on $[0,x_0)$, as desired.