Sometimes, we want to access a mobile phone’s camera from a web app with HTML.
In this article, we’ll look at how to access a mobile phone’s camera from a web app with HTML.
How to access a mobile phone’s camera from a web app with HTML?
To access a mobile phone’s camera from a web app with HTML, we use a file input.
For instance, we write
<input type="file" accept="image/*" capture="camera" />
to add a file input that opens the camera app when we tap on it.
Conclusion
To access a mobile phone’s camera from a web app with HTML, we use a file input.