in html div style textalignment center code example Example: text-align attribute in css text-align:inherit;