Hello everybody,
I've learned how to apply pseudo-class by using CSS style.
For example,
a: hover {color: green}
.
My QUESTION:-
How can we apply pseudo-class like (hover, focus, active, visited, link) on a line WITHOUT CSS?
For example, on the following tag:
Is there a tag, atribute, value ...! How?
Top comments (4)
As in, how in javascript do you detect hover/focus/etc?
There's a whole slew of mouse events (like
onmouseover
andonmouseleave
will trigger for the beginning and ending of a "hover")w3schools.com/jsref/obj_mouseevent...
Thanks. But you mean by javascript!
Yes, sorry I thought that's what was meant by "without CSS". Is the question asking for inline styling?
Pseudo classes won't work inline from my experience