optionalAttribute

Adds an attribute to this tag only if value is not null.

Return

this for concatenation

Parameters

key

attribute key

value

attribute value, applied only if not null