The Many Types of Forms Elements in HTML

The forms element in HTML is more like a mega-element with many other elements within. Each of the HTML forms elements has a number of properties, which in HTML are known as “attributes.”

  • forms element (mega-element)

  • forms elements (e.g., text boxes, buttons, etc.)

  • form attributes (e.g., name, size, width, etc.)

In looking at an HTML page with a form, with the exception of the <textarea> container, the only container within the forms object is the form itself. That is, the forms element has an opening and closing tag, but none of the elements within the container has closing tags:

<form> 
      <form element 1> 
      <form element 2> 
      <form element 3> 
</form> 

As far as JavaScript is concerned, the forms object is ...

Get JavaScript Design now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.