DEV Community

Cover image for Open Mobile Camera With HTML
Beginner Developer
Beginner Developer

Posted on • Originally published at

Open Mobile Camera With HTML

The HTML Capture attribute open device camera to capture image followed by accept attribute

The capture attribute takes as it's value a string that specifies which camera to use for capture of image or video

1 capture="user" - Open Front Camera
2 capture="environment" - Open back camera

Open Front Camera

Front camera

Open Back Camera

Back Camera


To record video pass video/* to accept attribute


Visit Blog:-


Top comments (0)