Assessment wanted for selectors skill test 1 evaluation

Task 1:

Task 2:

Task 3:

Task 4:

Task 5:

Thanks :hugs:

Nice work @Sarai_Atoche_Pascual :+1:

There’s only one wrong selector. In task 3 you’re asked to make the first line of the first element red. You’re selector targets the (non-existing) text of the container itself and therefore no red text is visible.
How could you change the selector to achieve the goal?

Michael

Hi Miguel. Ohh right, I should read the homework better, it would be like that right?

.container>:first-child{
font-size:150%;
}

.container::first-line{
color:red;
}

1 Like

Not quite. The first is fine as .container p:first-child (The first <p> in the container). The second selector should be for the first line of the element before. So .container p:first-child::first-line would be ok.

1 Like

ohhh I understand, I must be more specific

1 Like