WebGL enables rendering interactive 2D and 3D graphics in the browser using the GPU for hardware-accelerated rendering.