Let $I=[a,b]$ and consider the vector spaces $\mathcal{C}(I)=\{f:I\mapsto\mathbb{R}:f \text{ is continuous}\}$ and $\mathcal{R}(I)=\{f:I\mapsto\mathbb{R}:f \text{ is Riemann integrable}\}$.
What I'm trying to understand is why the function defined below,
$$\Vert f\Vert_1=\int_a^b|f(x)|\,dx$$
is a norm over $\mathcal{C}(I)$, but not over $\mathcal{R}(I)$. I'm thinking that maybe a function $f$ with some discontinuities and zero otherwise would satisfy $\int_a^b|f(x)|\,dx=0$, but $f(x)\neq 0$; if $f$ had to be continuous, this would not be allowed.