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

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -