I have an element where I’m already using the rel attribute, but I would also like to add another attribute that I’ll be using in JavaScript.
<a href="/" rel="blah" foo="bar">Link</a>
Is it alright to add other attributes? Or is there a better option?
I would use html5 data- attributes. Even if you are not using html 5 you can be sure your work will still work and is futureproof.
e.g