Codecademy.com is pretty good. It'll cover the fundamentals enough for you to be able to apply it to other stuff.
Thanks Jackg! Since I see you know about this kind of stuff can I ask you the same about Python? The best free course in your experience?
Codecademy again I'd suggest.
As I started in Python. I can also say that inventwithpython.com is also quite a good resource (don't buy anything, they have online resources free and the books don't have anything extra). There's a free PDF download of the books also but it's not as interactive.
Codecademy for reference do HTML/CSS, Python, jquery, SQL, php, JavaScript and quite a few more (I've learnt a lot from those tutorials).
I suggest you move onto inventwithpython after doing the codecademy tutorials as some of the game making and encryption stuff is quite interesting and a great education resource. Along with being applicable to a lot of other useful fields.