In my real analysis module we proved that both $\mathbb{Q}$ and $\mathbb{R \setminus Q}$ are dense in $\mathbb{R}$, meaning that between any two real numbers there exists a rational and an irrational number respectively.
In my own reading of set theory and the cardinality of infinite sets, I have learnt that
$$\left| \mathbb{Q} \right| = \aleph_0 \text{ , } \left| \mathbb{R} \setminus \mathbb{Q} \right| = \aleph_1 \text{ , } \left| \mathbb{R} \right| = \aleph_1 \quad \colon \aleph_1 > \aleph_0$$
From this it appears that there is a contradiction, since given that the cardinality of the real numbers is strictly greater than the cardinality of the rational numbers, it doesn't follow that the rationals can be dense in the reals. That is to say that given that there are "more" real numbers than there are rational numbers, there simply aren't enough rationals to fill the gaps between the reals.
Given that the cardinality of the irrational numbers is the same as the cardinality of the reals their density does follow since there are enough to go around.
For the rational numbers though, clearly I've misunderstood something, however I can't seem to think of an explanation myself; any explanation I come up with doesn't manage to get past this discrepancy.
The best analogy that I've managed to come up with is to consider the number line as a fractal, in that however much you zoom in, it will always show a rational number in between two real numbers, however I don't think this is the best way of looking at it, and I wanted to find a more formal and rigorous explanation of where I'm going wrong in my understanding and why this isn't actually a contradiction.
Thanks in advance!
EDIT:
Even if $\left| \mathbb{R} \right| = \aleph_1$ is not accepted, $\left| \mathbb{R} \right| > \left| \mathbb{Q} \right|$ being accepted (or that the rationals are countable whilst the reals are uncountable) still implies the same question.