We say that (1,x,$x^2$) span the set of polynomials of degree 2? But why do we say they are linearly independent?
How do you define linear independence of functions like $f(x) = x^2$ and g(x) = x?
Is linear dependent defined as being able to construct
$a_1*f(x) + a_2*g(x) = 0 $ for some non trivial $\{a_i\}$ for all x in the domains of the functions?
What would an orthogonal basis of functions be? are x and 1 orthogonal?
When it comes to linear algebra, beware what your elements are.
When writing about $1,X,X^2$ you actually mean the associated polynomial functions. Thus your $0$ is the null function which is defined as associating $0$ to any $x$. So saying your linear combination is the null function (ie. the polynomials you consider are independent) indeed means that this linear combination should be equal to zero for any $x$.
As vadim123 pointed out, orthogonality depends on the inner product you use.