Handle HTML align

Code and unit test.