There is a huge amount of information about music theory available on the internet, but here is a quick and simple explanation. In western music, we have octaves and scales.The "standard" pitch has the C note in the middle of a piano keyboard with a frequency of 523.2 Hertz (Hz, or cycles per second) and the A note just below it has a frequency of 440 Hz. An octave is any interval between one note and the note with twice its frequency. Both notes are given the same letter designation, followed by a number indicating its position on a standard 88 key piano. So the reference A at 440 Hz is called A4 and the next A an octave higher at 880 Hz is A5. Every octave is divided into 13 notes (counting the first and the last), and so 12 intervals. These intervals are equally spaced into semi-tones, but because the frequency separation in different octaves is not linear, the exact mathematical relationship between the individual frequencies requires an understanding of logarithms, which I will not go into here. For a major scale, there are 8 notes, the spacing between them is tone (equals two semi-tones), tone, semi-tone, tone, tone, tone, tone, semi-tone. Why? Because to our culturally conditioned ears it sounds right. The notes in all scales are usually numbered (or often roman numeralled) 1, 2, 3, ... 7, 8 or I, II, III, IV, V, VI, VII and VIII.
Find a picture of a piano keyboard. The piano keys and associated strings are tuned so that the musical interval between each key is a semi-tone. Starting with Middle C (C5) the keys are: C (white), C# or D- (black), D (white), D# or E- (black), E (white), F (white), F# or G- (black), G (white), G# or A- (black), A (white), A# or B- (black), B (white) and then C again (white) an octave above where we started. Note that notes like B- are called B flat, the proper symbol is like a pointy little lower case "b".
So the If we start in the key of C, meaning our octave begins with a C note, then the notes in the C-major scale are: C, D, E, F, G, A, B, C. Notice how the key of C has no sharps or flats (the black keys, more or less)
Suppose that we play an A-major scale, the notes then are A, B, C#, D, E, F#,G#, A. Here we need three of the black keys to play the major scale.
That is the basics, to learn more start looking up musical theory, as I say there is a wealth of information out there. For instance, a major chord in any scale is the triad of three notes, I-III-V or 1-3-5. Thus a C-major chord has C-E-G and an A-major chord has A-C#-E. To play a minor chord (in a major scale) you drop the middle note down a semi-tone, so an A-minor chord (in the scale of A-major) is A-C-E.