What do square brackets in class names mean?

Viewed 52345

I saw here square brackets that are used in class names:

<input class="validate[required,custom[onlyLetter],length[0,100]]" name="firstname" type="text" />

What do these square brackets mean?

7 Answers

Example:

[what-ever] {
    color: red;
}
<p what-ever>Hello</p>


This will color Hello red. You can use square-bracket as class names

Related