Like almost everything in programming, it really depends on the specific niche you want to specialise. Marco Alka and Jan Vladimir Mostert gave great answers, explaining that you can do just fine and be a solid developer without knowing HTML, CSS or JavaScript.
Web development is nice-to-have, but not mandatory.