You're probably best off using W3Schools as a reference, and analysing tutorial code and website code to see examples of usage in the 'real world'. Then, based on all that info, experiment

Nothing beats learning by screwing up repeatedly

That's how I learned XHTML and CSS, and bits of the Win32 API as well.