how do you do it? is there a certain technique or do you just have to be good enough at music to hear a note and know what it is on the guitar?
do a trial and error..

listen to a song

when tabbing chords..

use ur bass string in your guitar to tab the chords..
sometimes when listening to a song you cna work out the intrevals between the notes but it will probly be in the worng key . thats why a lot of beginner tabs get rejected.
Yeah you definitely need to be able to hear a note and then find that note on the guitar. It also helps to know a bit of music theory, cause if you can work out what key a song is in then you have a much better chance of working out the notes.
sig goes here