Using two or multiple css classes to one html element/tag.

Usually we define one css class to one html element. So it gets all style from that css class.

Example:


<h1 class="headfont">your text here</h1>

But sometimes we need more than one style to be applied to a html tag. This is how you can do it …

Example:


<h1 class="headfont specialheader">your text here</h1>

‘headfont’ and ‘specialheader’ are two css classes.

You can define any css classes like this.

.

Related Posts:

  • No Related Posts