Example:
[text id="my-id" class="my-class-1 my-class-2" style="color: red;"]
| Attribute | Examples | Description |
| id | id="my-id" | Defines the element id. Optional. |
| class | class="my-class" class="my-class-1 my-class-2" | Defines the element CSS classes. Optional. |
| style | style="color: red;" style="color: red; background: blue;" | Defines the element inline CSS style. Optional. |
IMPORTANT: Javascript code is not allowed in attributes for security reasons.
If you want to add a Javascript functionality to a BBCode, the best would be to give it a custom id or class and add your code in a separate .js file or through a custom code plugin.
Additionally, all fields have support for some global HTML attributes that all major browsers support.
| Attribute | Examples | Description |
| autocomplete | autocomplete="on" autocomplete="off" | Defines if field can be automatically completed by the browser. Optional. |
| autocorrect | autocorrect="on" autocorrect="off" | Defines if automatic spelling correction and processing of text is enabled while the user is editing this field. Optional. |
| disabled | disabled="disabled" | Defines that the user cannot modify the value of the field. Some browsers prevent the user from clicking or selecting disabled fields. Optional. |
| readonly | readonly="readonly" | Defines that the user cannot modify the value of the field. Read only fields can be clicked or selected by the user. Optional. |
| spellcheck | spellcheck="true" spellcheck="false" spellcheck="default" | Defines if field is subject to spell-checking by the underlying browser or Operating System (OS). Optional. |
| title | title="Text" | Defines a text representing advisory information related to the field. Optional. |