Major: w w h w w w h
Minor: w h w w h w w (major but on the 6th degree)
Chord names are based on the degree they start on, case is majority/minority.
Degree: Position of the note relative to the tonic (or root) note.