I am reading Alex Bartel's PDF "Introduction to Representation Theory of Finite Groups" (which I, who am by no means an algebraist, have by the way found very helpful), and in Chapter 2 in which he first discusses algebras over a field, he says that he always consider algebras which contain an identity (with respect to the ring multiplication). But then he gives an example: it is clear that given a field $K$, the ring of $n\times n$ matrices $M_n(K)$ is an algebra over $K$. The author then says that the ring of strictly upper triangular matrices (that is, matrices with zeroes on and below the diagonal) is a subalgebra of $M_n(K)$. But this subalgebra is not unital, since all of its elements are nilpotent, thus contradicting his original definition of algebras as unital.
Am I missing anything here? Or is this just a small mistake of the author's?
You are right on the fact that $UT_n(\mathbb{K})$ don’t have a unit.
A lot of algebras you want to study won’t have a unit element.
So I guess that the author was saying that it’s better to work with unital algebras in the sens that if you work with a non-unital algebra $A$ then try to find a unital algebra $B$ such that $A$ is a subalgebra of $B$.