<PLEASE USE THIS TEMPLATE TO HELP YOU CREATE A GREAT POST!>
<Below this line, add a link to the EXACT exercise that you are stuck at.> https://www.codecademy.com/en/courses/web-beginner-en-WF0CF/3/5?curriculum_id=50579fb998b470000202dc8b#
<Below this line, in what way does your code behave incorrectly? Include ALL error messages.>
I have used 2 brakelines betwen the Links(a) and While I was typing the a:nth-child(2) in the stylesheet.css tab, I’ve noticed that it counts <br/> as a <a> too. I mean if I wanted to select the second <a> I had to type 3 in the selector.
can someone plz tell me why?
look. first they asked me to write three links. so i did that. i used a linebrake instead of a list to make each link be in a seperated line. then i went to the stylesheet tab to apply the color with the code a:nth-child(3){color:#FFC125} . and then i saw that instead of the third link, the second link changed its color. after deleting the br , everything got back to normal and the third link changed it’s color. i wanted to ask why this is happening and the linebraker is a problem here?