Generally a good practice in html is, when there are a lot of attributes to a tag, leave the tag on the first line, then put all attributes on new lines each indented one tab inwards, than (if the tag must be closed) close the tag aligned with it's opening. Put the inner html either one more tab inwards or aligned with the attributes.