Can I add a custom attribute to an HTML tag like the following?
You can set properties from JavaScript.
document.getElementById("foo").myAttri = "myVal"