ID and Class
<form action="#" method="..." id="..." class="..."> ... </form>
As with many other elements in HTML, you should add an id and/or class attribute to your form elements. The id attribute is used to uniquely identify an element from all other elements on a page. You can give the id attribue any value that you like, it is just a way to single out a specific element. A class attribute can be used to group a bunch of different elements into a category, so multiple elements will have the same class attribute.
- Previous
- Next