I've never been able to find a way to do it. While it will probably break validation, you should be able to put the <style></style> tags within the body of the page, so just before that link, declare the hover property (I'm assuming that there is some reason why you can't put the declaration in the head of the page).
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
pickle wrote:I've never been able to find a way to do it. While it will probably break validation, you should be able to put the <style></style> tags within the body of the page, so just before that link, declare the hover property (I'm assuming that there is some reason why you can't put the declaration in the head of the page).
It was dynamic content and simply applying the attributes inline was easier/quicker. I could have done it with <style> tags and CSS classes I guess
Note: I'm pretty sure there's nothing stopping you adding <style> tags inside the <body></body> in terms of SGML validation.