Internal Styles - Identifiers

How to set internal style using identifiers?
I want to set style to standard html tags. But I want to restrict the styles to certain keys only, how to do it?


When we use universal styles it will set style for all the tags of that type.
But many times we will want to set different styles at different positions for the same type of tag.
That when we use identifiers.
If we use internal styles with identifiers, we have to set the id for the style to take effect.


color: red;
background-color: orange;
color: green;
background-color: yellow;

<a href="index.php" id=test1> Index </a><br><br>
<a href="index.php" id=test2> Index </a>


Now you can see how we have different styles for the same "a" tag.

Ask Questions

Ask Question