Does the set A have a maximum element?
${\displaystyle A =\{q\in \mathbb {Q} |q<a\}} $
Thoughts: I don't think it does. We can suppose that it has a maximum element, q. Then q is a real number and a is also a real number (and they are not equal), so infinite rational numbers exist between them, let's say one of them is p. So, $ q<p<a$ which is absurd. If that's the correct way to think about it, can you help me prove that the rational numbers between a and q are infinite?
There are no maximum element in $A$. However, if you look for a supremum :
If $a\in \mathbb Q$ and you want the supremum in $\mathbb Q$, then yes, and $a$ is the supremum.
If $a\in \mathbb R\setminus \mathbb Q$ and you want the supremum in $\mathbb Q$, then no.
If $a\in \mathbb R\setminus \mathbb Q$ and you want the supremum in $\mathbb R$, then yes, and the supremum is $a$.