Tangent and cotangent are trigonometric functions that relate the angles of a right triangle to the ratios of two of its sides, with tangent being the ratio of the opposite side to the adjacent side, and cotangent being its reciprocal. These functions are periodic, with tangent having a period of π and cotangent also having a period of π, and are undefined at angles where their respective ratios involve division by zero.