It’s a nice a time to learn web development nowadays. The number of resources available is incredible — codecademy, udacity, coursera, codeschool, treehouse, MIT EdX.
The biggest mistake you can make is to give up soon.
When I started learning, I didn’t realize how a lot of “coding” was actually a lot of debugging. It’s a constant up-and-down struggle of solving problems. But most problems are solvable, and it just takes patience and a lot of persistence to keep going.