On a piano, the next key up is a semitone. On a guitar, the next fret up is a semitone. So a string is a keyboard laid sideways, and the 12th fret is where the open string's note comes back one octave higher.
The notes without sharps or flats (the white keys) are one fret apart only at E–F and B–C. Everywhere else the natural notes are two frets apart.
Standard tuning, from the thickest string to the thinnest, is E – A – D – G – B – E. A good way to say it is Eddie Ate Dynamite, Good Bye Eddie.
Between neighbouring strings there are five frets (a perfect fourth), with one exception: between G and B it is four frets (a major third). Remember that single change, because it moves every shape you learn when it crosses the G–B pair.
E A D G B E
standard tuning
5 frets
between strings (a fourth)
4 frets
between G and B (a third)
The notes of the low E string are the ones to know first:
The A string works the same way, starting on A: open A, fret 2 B, fret 3 C, fret 5 D, fret 7 E, fret 8 F, fret 10 G, fret 12 A. Once you know these two, you can find any root note for a chord or scale in a second.
Try this: find every A on the neck: open A string, fret 5 low E, fret 12 A string, fret 5 on the high e, and so on. Say the name each time you play it.