If there are 5 p elements and i want only 1 p element to be of color red and rest to be as usual.How can i do it using CSS?

https://www.codecademy.com/courses/learn-css/lessons/css-setup-selectors/exercises/tag-name?action=resume_content_item

2 Likes

the next lesson:

https://www.codecademy.com/courses/learn-css/lessons/css-setup-selectors/exercises/class-name?action=resume_content_item

explains exactly that. Of course, classes (and ids, two lessons later) are not the only options, things like nth-child or nth-of-type psuedo classes are also possible.

2 Likes