Can I add a custom attribute to an HTML tag like the following?
You can do something like this to extract the value you want from JavaScript instead of an attribute:
value for JavaScriptsome text