Electric guitar: Well the world of electric guitars is in some ways more complex, as there are all kinds of different looks and technologies. And it’s not good enough to just have a guitar, you need to buy an amplifier as well. I will just recommend mid-level stuff that’s worked for me based on my preferences, but if you like “stuff” and collecting gear, you’ll find playing the guitar to be a deeply satisfying hobby :)
Try out different strumming patterns and rhythms. Once you're able to produce a good sounding chord, try strumming it at different tempos and rhythms. Rhythm is based on your strumming pattern, and how long you're holding your notes. Try a basic 1-2-3-4 beat, otherwise known as a 4/4. The number on the top represents how many beats there are in the measure. Try strumming up and down in different progressions to create a different sound for your rhythm. Once you get a basic rhythm down, you can start to incorporate quicker or slower strumming.
The guitar is a remarkably hackable instrument for a million reasons that will be revealed to you as you spend more time with it. As you go along in your journey you’ll find a million shortcuts and fun ways to learn fast. I’ve rarely heard any of this stuff from guitar teaches, so beware, trust your instincts, and learn from people who can show you where you want to be.
Try listening to different styles of music for inspiration as you learn to play. If you're trying to learn to play by ear, listen to the blues and try to mimic that sound. Blues progressions are especially great for learning to play guitar because it's built on the basics of music theory. Once you learn those progressions, you can start practicing them in different keys, as well.
Learn how to transition to different chords. One way to become proficient quickly is to learn how to transition between the various chords quickly. These transition periods are often the hardest for beginners to play when they are starting off. The more you practice between switching to different chords, however, the better you'll get at doing it in songs. Practice switching between open chords like G, A, E, and C. 
Hold your guitar correctly. When you are sitting down, there are two main ways to hold your guitar. For a casual playing style, lay the guitar over your dominant leg. On the other hand, the classical method has you set your guitar on your non-dominant leg. In both instances, make sure that the guitar is held close against your body. Holding your guitar properly makes it easier to play and prevents you from becoming fatigued. Play around with both styles and figure out which one is most comfortable for you.
If you are practicing regularly, like you should be (at least once a day) be sure to change your guitar strings once a month. You will be amazed at how much of a difference in sound quality a fresh pack of strings will make. You don’t need super expensive strings. When I was starting out, I got by quite happily on my local music store’s house brand of strings that cost about $4 a pack.
Start playing the different notes and hold the different shapes. Once you have a basic understanding of how the notes are played throughout the song, you can start to hold each of the chords. If the song consists of chords that you're used to playing, it will make the process easier. If the song uses different chords, it may take some time and adjustment to get used to them. Practice the chords separately if they are unfamiliar to you.