Website query realated form

Hie team,
I have created one form in my website using html . i want to get to know how can i create lead on button…
when i click n submit button the details we fill its goes in lead…

here is my form:

Untitled

You will have to call REST API for lead doctype.

Can Someone explain deeply to me about how can i call REST API …?

U need to map lead doctype in web form.

How to map lead doctype in web form…can you please explain by one example…

@suvarna_bhangare

Better way you can use the web form. Check this - Web Form

If you want to use custom page/HTML use Rest API to create a record at the backend.
e.g. If Person is the form then how to create record of Person using rest API