I am aware that the pseudo classes must be in order in order to not conflict each other. (double ‘in order’ intended)
The thing is that I read that CSS reads from right to left (when finding a match), and that put me in doubt about this:
a{
color:blue;
text-decoration:none;
}
a:hover,a:focus{
text-decoration:underline;
}
Should it be a:focus,a:hover or it is good as I have it now?
In this case, it shouldn’t matter, as they cannot both be triggered at the same time… given that
:hoveris for link events triggered with a mouse and:focusis for link events triggered with a keyboard.However, read this
From here: http://reference.sitepoint.com/css/pseudoclasses
In this case, I think ideal would be