Want access to a user’s camera? You have to ask permission.
Want access to their location? Ask permission.
Their microphone? Permission.
Building in layers of technology (HTML, CSS, JS — in that order) is how the web is designed to work. It breeds resiliency.
URLs lead to HTML which leads to CSS and JS. Start at the bottom layer and build up, ensuring new layers enhance on the layers beneath them and core functionality remains working if the technology breaks at any layer.