Add a proper attributes value for HTML elements