Why is the set $A=\{f\in F:f(0)=0\}$ an ideal where $F=\{f\mid f:[-1,1]\to \mathbb{R}\}$ and $(F,+,\times)$ is the usual commutative ring?
I first checked whether $A$ is a subring. For this observe that $A$ is non-empty and for any $f,g\in A$ $$f-g\in A \text{ and }f\cdot g\in A.$$ So finally we want to check whether the multiplicative identity $f(x)=1$ is in $A.$ Clearly not as $f(0)\not = 0.$ So $A$ cannot be a subring. Hence $A$ cannot be an ideal also.
But the solution says that $A$ is an ideal. Why?
For reference here is the problem $2.1$ part $(4)$

Hint:
An ideal $I$ is a subset of a ring $R$, for which the elements are closed under addition and $ra\in I$ for all $r\in R$ and $a\in I$.