Regardless of your ability, keeping your guitar in tune will make a huge difference in the quality of your playing. There are many ways to tune a guitar, and some methods work better than others depending on the person.
Guitar tuning is most commonly done with the use of a reference pitch. A reference pitch can be a piano, a guitar, a pitch pipe, an electric tuner or one of many other things.
A guitar has six open strings: E A D G B E, in order from lowest to highest. Use your reference pitch to sound an E, and tune the lowest string by adjusting the nobs at the end of the guitar. You can continue to play pitches and tune each string individually.
Rechecking your tuning by reference pitch can also be done on the guitar itself:
Check the A string by playing the 5th fret on the E string. They should sound the same, and the pitch should resonate. Check The D and G strings in the same way. Check the B string by playing the 4the fret of the G string. Check the high E string by playing the 5th fret of the B string. Play the high and low E string simultaneous. If your tuning is correct, they should sound the same except an octave apart and should resonate when played.
Often, songs will use alternative tunings. These tunings can be done in the same way, with a reference pitch. However, you will not be able to check your strings using the 5th/4th fret rule as when it is in standard tuning.
Tuning a guitar can be tricky for a beginner, but the more you do it, the faster and easier the task becomes. Employing these simple steps can help you accurately tune your guitar