In Solidity, a token can be coded using the ERC20 token standard. This standard defines a set of functions and events that a token contract must implement in order to be considered a valid ERC20 token.