/
Don't use form elements

Don't use form elements

Back when I was a boy and Netscape was around and the only way you could program webpages was to have a form submit to a cgi-bin script then <form> tags were useful. Nowadays they are an obsolete technology that still exists in browsers but we don’t need to use them as part of a modern web application.

In fact they cause all sorts of odd side effects with default keyboard actions and resolving to URLs with ? with the default submit action that it’s really best not to use them. You can create forms with input elements and collect data via Javascript apis without using the <form> tag.

Related content

Don't use half thought out features like nav tags, button tags.
Don't use half thought out features like nav tags, button tags.
More like this
Avoid tags for emphasis, bold, italics etc.
Avoid tags for emphasis, bold, italics etc.
Read with this
Do not store application data in the DOM
Do not store application data in the DOM
More like this
Tables
Tables
Read with this
HTML Structure
HTML Structure
More like this
How can we do a table like display with CSS grid?
How can we do a table like display with CSS grid?
Read with this