To expand on comments:
As Dietrich Burde points out, of the various characterisations of Cartan subalgebras in semisimple Lie algebras (cf. 1, 2), the one that likely works best here is that of a maximal toral subalgebra (toral = abelian and consisting of $ad$-semisimple elements).
Then, we should agree on what Lie algebras we even mean here: Namely, the split simple forms of types $A_n, B_n, C_n, D_n$ (over a field $K$, let's assume characteristic zero to be safe). For $A_n$, everybody knows that it is $\mathfrak{sl}_{n+1}(K)$, the $n+1 \times n+1$-matrices over $K$ with trace $0$. As per 3, the others are:
For type $B_n$,
$$\mathfrak{so}(2n+1) := \{M \in M_{2n+1}(K): M^TS+SM=0\} \text{, where } S=\begin{pmatrix}
O&I_n&O\\
I_n&O&O\\
O&O&1
\end{pmatrix}
$$
$$=\{\left(\begin{matrix}A&B&-f^T\\C&-A^T&-e^T\\e&f&0\end{matrix}\right): A,B,C\in M_n(K), B=-B^T, C=-C^T , e, f \in M_{1\times n}(K)\}.$$
For type $D_n$,
$$\mathfrak{so}(2n) := \{M \in M_{2n}(K): M^TS+SM=0\} \text{, where }
S=\begin{pmatrix}
O&I_n\\
I_n&O
\end{pmatrix}
$$
$$=\{\left(\begin{matrix}A&B\\C&-A^T\end{matrix}\right): A,B,C\in M_n(K), B=-B^T, C=-C^T \}.$$
For type $C_n$,
$$\mathfrak{sp}(2n) := \{M \in M_{2n}(K): M^TS+SM=0\} \text{, where }
S=\begin{pmatrix}
O&I_n\\
-I_n&O
\end{pmatrix}
$$
$$=\{\left(\begin{matrix}A&B\\C&-A^T\end{matrix}\right): A,B,C\in M_n(K), B=B^T, C=C^T \}.$$
Now what you want to show is that in each of these algebras, those diagonal matrices which sit inside it form a CSA. (Note that these are never all diagonal matrices. E.g. in all of them, the trace of every matrix has to be $0$. Further, e.g. $\pmatrix{1&0&0&0&0\\0&-1&0&0&0\\0&0&0&0&0\\0&0&0&0&0\\0&0&0&0&0} \notin \mathfrak{so}(5)$ etc.)
It is nearly trivial that diagonal matrices describe $ad$-semisimple elements. It is well known that they commute with each other. Leaves to show the maximality. Indeed, one can show (seemingly) more, namely, that in each case, the diagonal matrices inside the given algebra are their own centraliser.
To show that, I would recommend first looking at the case of $\mathfrak{sl}_n$. The crucial step is learning to "see" centralisers of individual diagonal matrices. E.g. you should be able to see with a glance that
the centraliser of $\pmatrix{3&0&0&0&0\\0&0&0&0&0\\0&0&-3&0&0\\0&0&0&0&0\\0&0&0&0&0} \in \mathfrak{sl}_5$ is $\pmatrix{*&0&0&0&0\\0&*&0&*&0\\0&0&*&0&0\\0&*&0&*&*\\0&0&0&*&*}$, or that
the centraliser of $\pmatrix{1&0&0&0&0\\0&1&0&0&0\\0&0&-1&0&0\\0&0&0&-1&0\\0&0&0&0&0} \in \mathfrak{sl}_5$ is $\pmatrix{*&*&0&0&0\\*&*&0&0&0\\0&0&*&*&0\\0&0&*&*&0\\0&0&0&0&*}$, or that
the centraliser of $\pmatrix{17&0&0&0&0\\0&-17&0&0&0\\0&0&-17&0&0\\0&0&0&17&0\\0&0&0&0&0} \in \mathfrak{sl}_5$ is $\pmatrix{*&0&0&*&0\\0&*&*&0&0\\0&*&*&0&0\\*&0&0&*&0\\0&0&0&0&*}$.
All these things can be shown with direct matrix computations, but it is strongly recommended to instead learn to think of them in terms of root space decompositions, cf. 4. This allows you to quickly grasp answers to questions like 5.
Once you have that, you should be able to quickly see that indeed in all cases, the subalgebra made up of diagonal matrices (that is, those diagonal matrices that actually lie in the respective Lie algebra) are self-centralising. (Use that the centraliser of a subalgebra is the intersection of the centralisers of all its elements.)
Then in hindsight, you can actually even use something like
the centraliser of $\pmatrix{1&0&0&0&0\\0&2&0&0&0\\0&0&-1&0&0\\0&0&0&-2&0\\0&0&0&0&0} \in \mathfrak{sl}_5$ is $\pmatrix{*&0&0&0&0\\0&*&0&0&0\\0&0&*&0&0\\0&0&0&*&0\\0&0&0&0&*}$ (and hence so is its centraliser in $\mathfrak{so}(5)$, where there are just a few restrictions on the asterisks anyway), and that kind of thinking should lead you right into the usefulness of regular elements (which this one is, and the other ones above were not), and give you a feeling connected to your previous question.
As final words of warning, as noted in a comment, a) these algebras, even when written exactly as matrices as above, contain many other Cartan subalgebras which are not given by diagonal matrices; and b) note that at least over certain base fields, one can alternatively represent the Lie algebras by matrices which do not even contain non-trivial diagonal ones. E.g. $\mathfrak{so}_3(\mathbb C)$ is isomorphic to $\{\pmatrix{0&a&b\\-a&0&c\\-b&-c&0}: a,b,c \in \mathbb C\}$. There's infinitely many Cartan subalgebras in there, but they're hard to see ...