If you look at the following example you will notice a line of letters and symbols above the staff (Cmaj7, Dm7 etc.) These are chord symbols which indicate the harmony to be played by accompanying instruments such as keyboard or another guitar. In section 2 you will learn more about chords and how to play over each chord type.
Here is a simple solo derived from the notes of the C major scale. Learn it from memory and then experiment with the ideas and note sequences to create your own melodies.