Level 29 - I'm stuck
Can anyone please provide suggestions for how to solve level 29? I've tried every combination I can think of.
@therachelbee ...
think about lesson 28: Select all elements that have a specific attribute
you likely did plate[for] as the answer, right?
well what if we want to get more specific? what if we don't want to select all the plates with a for attribute but instead we want to select only a handful of plates? for example, here (lesson 29) we only want to select Vitaly's plate. well CSS allows us to do that by specifying which attribute value we want.
so let's say our html is:
<div name="ben"></div>
<div name="rachel"></div>
<div name="flukeout"></div>
and let's say I only want my plate. then i would select it in css by typing div[name="ben"]
now, what would we type if we wanted your plate (ie rachel's plate)? find that answer and you'll be able to solve problem #29.
(note that attributes can be anything... my example uses name but problem 29 uses for)
Thanks for helping out @benjaminhoffman! Did that help you out @therachelbee?
I was stuck with this but it wasn't syntax, it was me being silly - I needed to watch out for uppercase / lowercase.
this issue can be closed now.
hi i stuck with this everytime i type [for="Vitaly"] , [for='Vitaly'] , [for=Vitaly] or bento[for="Vitaly'] is not run what should i do
i solved it. the vitaly have big v