So you've set up the styles for the links of your page but you have one section that you want to be different from everything else. To do that, you need to assign a different class or ID.
For example, you might have styled your links like so:
To create a different style we could either attach a class directly to the anchors (
tag) themselves, or we could assign a class or ID to a containing element. The first would look like:
The second would look like:
When to use which will depend on the situation, however, if you have a lot of links, you’re probably better targetting them through the parent element than applying a class to every single one.
Remember in the case of using a parent element to target styles that you need to apply the parent to each different pseudo class (another name for anchor tags), e.g.:
#myDiv a:link, #myDiv a:visited, not
#myDiv a:link, a:visited.