Electric guitars have pick-ups (a type of inbuilt microphone) and need to be played into an amplifier (amp) to be heard.
The solid body electric is commonly used in Metal, Rock, Blues and Pop. Famous solid body guitars are the Gibson Les Paul and the Fender Stratocaster.
The hollow body electric (semi acoustic) is most commonly used in Jazz and Blues.