"Web development" means many different things to different people.
I believe a sensible approach, for some (including me), is:
1. Learn back-end web programming (HTTP request/response model, templating, sessions, security, the REST architectural model, ORM...) with your framework of choice (Django, Flask, Litestar, Sanic...). There are many tutorials and books around.
2. Learn HTMX (https://htmx.org/). A fine book is https://hypermedia.systems/ (it will also teach you the fundamental, framework-agnostic, principles of 1.)