Click the chat bar at the bottom of the screen and type, or press the slash key, enter your message, and hit Enter to send it.
If nothing appears, chat may be restricted by the game or by your account's safety settings, which is common for younger accounts.