good_evening good_evening - 5 months ago 8
CSS Question

Adding more than one class

Is it bad thing if I add more than one class for one object. Let's say:

<a href="#" class="paren" class="defaul">text</a>


Don't ask me why, I just need it.

Thanks.

Answer

You can use multiple class names (a perfectly normal thing to do), but are only allowed one class attribute on your HTML element.

Do this instead:

<a href="#" class="paren defaul">text</a>