Hello, I'm new here but as anyone who saw my first thread will know, I'm fairly inexperienced with Web Standards (That's what you get for getting into web design, then not doing any for four years) so I'm fervently reading up on everything as it's all good practice and, well it suits my anal coding styles. I like things to be ordered and clean so the whole concept of separating design and content would have appealed to me even if it didn't have all the benefits it does. While reading up on the subject I came across the concept of separating Behavior as well. For example, having Javascript imported like style sheets, then using it for things like opening pages in new windows. Then, just like changing the background colour of your site, you could remove that function easily. Anyway this thread wasn't designed to be a debate on whether that's a good idea. I'd love it even if everyone on this forum posted saying it was stupid... and any rate, it's probably old news to most of you. My question was to do with the CSS hover property. It's a bit pedantic and I don't suppose it really makes much difference in the overall scheme of things, but should things like rollover colour changes be counted as behavior and, therefore, done with javascript rather than CSS, which should only be there to handle design? I know it's a bit pointless but I'd be interested to hear what you all think.
This gets debated occasionally. The final straw, to me, is that since you need CSS but you don't always need javascript, use CSS for rollovers. The markup is simpler, too. Also, in the rare case that someone has js turned off, it will still work.