You can play your serve by putting your feet on the line, that's legal. But you are not allowed to have your foot exactly over the line, that is not legal.
If you do, it's called the foot fault. Just the difference is on the line and over the line. On the line is permissible, while over the line is not.