Separate html attributes into encapsulated object.