As a teacher on a local technical university, I completely understand what you're talking about here. However, the purpose of technical universities is to teach broads concepts on computer science (or computer engineering). Therefore, we have to start somewhere, building from basic concepts such as the need for digital "codification" up to the dozens or hundreds of concepts which will provide students with a better understanding of the field.
In your case, you pretty much decided that you would want to do frontend web development, so you made a choice. Where I teach, students only have one course which they will ever learn about html/css/js, and on a very basic level (there's a lot of information to fit into 3 years!). Assuming that most technical universities are like this, I think you made a good choice for you. However, if someday you decide to switch to backend development, making your way down the stack for DBs, or eventually up the stack for higher-level things, such as data analysis, ML, etc., you may probably find difficulties related to the lack of breadth on your understanding of the field.
All in all, just to say that you made a good choice for you, but that technical universities can provide students with a breadth of information which allows students someday, after some years of experience, to grok the similarities between most CS subfields..