Can someone help me with using the class tag on paragraph tags? I am trying to style a specific paragraph from an external CSS file without affecting all other paragraphs. I've searched online and learned that by adding <p class="somename" >
, I can target that particular paragraph in the CSS file using p.somename{ color: blue;}
.
However, when I use p{color: red;}
, it seems to change the style of all paragraphs.
This was just one example issue. The main problem I'm encountering is that I want p.somename to have a different styling than the default <p>
, which includes having no background border while default paragraphs do have borders.