This is my first post here.
What I want to be able to do is change how a link acts when the mouse hovers over it.
I don’t want to use any style sheets, just simply add it straight into the anchor tag.
Something like this:
<a style=" a:hover"text-decoration: underline;color:red;"" href="www.www.www"> LINK </a>
Any ideas?
Thanks 🙂
styleatributes aren’t meant to handlepseudo-classesinline.To get that effect inline within the
<a>tag you can try:HTML
Or using a javascript function
HTML
JavaScript
Naturally, CSS handles this much better and would be the recommended way to do this:
HTML
CSS
Is there a reason you cannot use a stylesheet?