Quick answer:

The X tax code is an emergency code used by HMRC when they don’t have all the details needed to assign your final tax code. It means tax is taken at a basic rate, which could mean paying more or less than you should. Usually it's only temporary and gets updated once HMRC has the information they need to apply the right tax code for you.