It is safer to put carpets if you have got kids at home.
However you can also put playmats are mentioned above.
& carpets are high maintenance. If you were to spill anything on the carpets, you might have a hard time cleaning it. It may even leave stains on it.
Also, carpets do trap dirts/dust, require regular vacuuming.
Thus, i would recommend tiles.