Did you look up the definions?

An altitude of a triangle is the segment drawn from a vertex perpendicular to the opposite side.

A median of a triangle is the segment drawn from a vertex to the midpoint of the opposite side.

Can you figure it out from these definitions?