The Sun is a as a G2V type star, a yellow dwarf and a main sequence star. Stars are classified by their spectra (the elements that they absorb) and their temperature. There are seven main types of stars. In order of decreasing temperature, O, B, A, F, G, K, and M.
Hope this helps! :)