You should only be using online wallets when you have no other choice, hardware wallets are still the better choice. But to keep your online wallet as safe as possible is not very hard. Just make sure that you never store your private keys online in a place where hackers can get to them. As long as no one can get your private key then they cannot get into your wallet.