Try WebGL or better, WebGPU. It's so much easier and all the concepts you learn are applicable to other APIs.
https://webgpufundamentals.org
or
https://webgl2fundamentals.org
I'd choose webgpu over webgl2 as it more closely resembles current mondern graphics APIs like Metal, DirectX12, Vulkan.