Web development is programming. A good Web developer is a polyglot who has mastered a lot of different technologies and concepts. It’s actually a pretty difficult pursuit and I empathize with people who are trying to transition to it as an initial career.
Career prospects are relative to your location. In the US there is strong demand for web development and I see no sign that this will be changing any time soon.
Microprocessor design and manufacturing engineering was once a strong career path in the US. Now with almost all manufacturing of high tech having moved to China, Korea and elsewhere, what was once a blue chip career is no longer in high demand in the states.
My advice to you is to get a foothold into the industry as a developer, since that career leads to opportunities across the spectrum of IT. Most good programmers can master, infosec, system administration, Devops, and network engineering, whereas, someone who is only a specialist in one of those other careers very likely would be unable to find work in any of those other specialties.
The important thing is that you are curious, and enjoy learning. IT and development have one constant – they are changing constantly. If you have strong computer science fundamentals, you will be able to adapt to the constant changes, but you need to keep learning throughout your careers and those people who fall by the wayside are often those who really never enjoyed the challenge of learning in the first place. They get burned out because you can’t sit on your laurels as a developer, but conversely that is what many people enjoy about it as a career.