First of all, you have to bring your village into farming so you could produce maximum Elixir and Gold. Then slowly start building your defense with Gold and Army with Elixir. Don't upgrade your town hall, please.
Everyone newbie makes this mistake by upgrading their town hall as they have more Gold. Go for strong walls, they will help you protect your defense from giants and barbarians.
Now join a friend's clan or search for the one then start practicing attacks & go for 3 stars. Forget about the loot right now. Just focus on destroying defense first then loot. Participate in clan wars, this will help you understand team work and donation process.
More you would understand when you will play daily.