Differentiate between the use of ID selector and class selector.

ID Selector:

<style>

{

text-align: right;

color: blue;

}

</style>

CSS class Selector: 

<style>

.right {

text-align: right;

color: blue;

}

</style>


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *