In HTML, text is aligned using a property called "text-align" that can have three values: "left," "right," "center" and "justify.