Tangent definition and graph

Drag point "t" to see the construction of the tangent function.[br]Why does tan have period π? Why is tan undefined at π/2?

Information: Tangent definition and graph