When writing in HTML, the tag is used to group related elements in a form by drawing a box around them. The following sections contain information about this tag, including an example of it in use, and related attributes and browser compatibility. Example of code Personal Information: Name: Address: Email: Phone: Example result Attributes Within an HTML tag, an attribute dictates certain aspects of an HTML element. Attributes are made up of a name and value pair; all tags support standard attributes. The following table shows all of the current unique HTML attributes for the tag, and a description of each. You can add a caption to the element using the tag. The tag belongs to a group of tags called form elements. Example of code Example result Attributes Compatibility Additional form elements Related information Compatibility Additional form elements Browser, Compatibility, Container tag, HTML form tag, URL, Web design terms Related information How to change the style of an HTML form button. HTML and web design help and support.