Is the ordering of attribute values ever semantically or logically important.

For example, is there ever a practical difference between:

`<p class="a b">`
and
`<p class="b a">`

#HTML #CSS #JavaScript #WebDev

@Edent Doesn’t order of class names affect the cascade?

@Edent As far as I'm aware, it's the order of things within the CSS file(s) which is important.

Sign in to participate in the conversation
Mastodon

Time for a cuppa... Earl Grey please!