committing a solution for html-attributes question