Before you attack, you must have an advantege:
"Any attack that is not decisive (the attacker does not have an advantage) will eventually fail"
So, to answer your question on how to attack:
- Build an advantage in one of these areas: Space, Material, Pawn Strucutre (make you opponent have an isolated/backwards/doubbled pawn, etc), King Safety, development (pieces placed so they control more of the board), etc
- Now, since you have an advantage, you will AUTOMATICALLY begin to see areas that you can expand your advantage
- If not, use tactic-trainer and complete no less than 20 problems per day, then these things will begin to jump out at you. I increased by rating by 400pts this way
Hope that helps
how do i initiate a attack in chess i dont know exactly how/