how are notes played on guitar
Each string of the guitar has a different note attached.
See thedude's answer here for how to determine the notes on a guitar:
Take lessons or find computer programs to teach you how.. learning guitar is not something you can just ask straight out with ONE question.
I use chords much easier than TABS!