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 - How to save instance state of selected radiobutton on menu -

python 3 IndexError: list index out of range -

IF statement in MySQL trigger -