If you're talking about real hacking, try learning to code more than HTML, CSS and JavaScript. You might want to check out Java, Python or Ruby. Maybe take a look into C. Study data structures, and algorithms.
But if you want the "bad" hacking, it's called cracking. I think learning those too and some network understanding maybe essential. But that's just how far I can say. I don't know much about cracking in general.