Web development will allow you to learn programming in a fun way and then a year or two you can transition that into bigger and better things.
For example. If you learn web development using Ruby on Rails, after some good experience with that language you can take what you learned into say something like Java which is an enterprise heavy language and from there you can get into web development with Java and move onto software development but everything takes time.