Deprecated in HTML5. Do not use.

<form name=””>

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

Sharing is caring!

Attribute of
HTML Form Code For Beginners (And When To Use It)
What does <form name=""> do?
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 id instead.

Note: name is not deprecated when used with form fields.

Claire is seasoned technical writer, editor, and HTML enthusiast. She writes for and runs a content agency, Red Robot Media.