parse HTML style attributes and values