How to send OTP from a webpage??
They do from back-end..You can use python, java or any other platform. You can generate random number or you can use your own created costomizes number. Why back-end because you can connect your database with this. You can store that number in your database and send mail or message to validate OTP on web page.