Disclosure: Your support helps keep the site running! We earn a referral fee for some of the services we recommend on this page. Learn more
- Attribute of
- HTML Form Code For Beginners (And When To Use It)
- What does
- The `name` attribute is deprecated when used with the `form` element. Use `id` instead.
When used with the
form element, the
name attribute is deprecated. Use
name is not deprecated when used with form fields.