Html attributes

Implementation according to #54 

Comes with tests and documentation.