the dominant trait
so if one parent has straight hair and the other has curly the offspring would get curly hair because its the dominant trait.
but if both parents were to both have straight hair they would produce an offspring with straight har because they are both recessive.
hope this helps