text align property html code example Example 1: css text align right body { text-align: right; } Example 2: text align justify text-align: justify;