Of course when it comes to learning, what better that own research and implemented things and your own observation comes handy.
The better way of doing is self study and deriving results by implementing those codes. At large HTML and CSS are enough to start with. As you graduate you can learn more languages and dynamic scripts.
I suggest: www.w3.org, www.w3schools.com