Sets the value of TextAlign attribute. TextAlign is the property describes how text is aligned horizontally within the element. The actual justification algorithm used is dependent on the rendering algorithm.