Formula for calculating height in regular, isosceles, equilateral, and right triangles

The altitude in a triangle is a straight line with important properties and is closely related to many plane geometry problems. So what is the altitude and how to calculate the altitude in a triangle?