The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Home › Forums › CSS › [Solved] Custom attribute / property in CSS
No…I’m not talking about ‘data-attributes’ but I came across this in Stack Overflow.
<li anything="london">First</li>
Why does this work? : http://codepen.io/Paulie-D/pen/JfLog
It’s not referencing the ‘london’ but it does seem to react to the ‘anything’!
Am I missing something?
No I get that it’s acting like (or is) an attribute…I just didn’t know we could make up our own.
Other than data-xx etc.
data-xx
Wow…thanks for that.
I thought I was going crazy for a while.