html - CSS attribute selector with url -
is valid use below css:
.myclass[my-url='page.html']
html
<ul class="myclass" my-url="page.html"></ul>
my doubt here can directly use html page name value. my-url actual attribute on element value of page.html
yes, technically works instead of using my-url should use data-my-url make pass html5 validation (if matters @ all).
Comments
Post a Comment