You pick the fields, click Generate on the Web-to-Lead page, and Salesforce refuses:
Error: Invalid Data. Review all error messages below to correct your data.
Error: This API Key pair isn't valid. Enter the key pair name.
Include reCAPTCHA in HTML is ticked by default and needs a reCAPTCHA v2 key pair. Add the key pair, or untick the box while you test, and Generate works. That is the first of ten reasons a Web-to-Lead form in Salesforce produces no leads, or the wrong ones.
Below: the setup that worked in our org, the full form HTML, a curl test, and a check plus fix for every other cause.