Use CSS Selectors to Style Elements (error in explanation?)

Use CSS Selectors to Style Elements (error in explanation?)
0

#1

Is there an error here, your explanation says “That’s one way to add style to an element, but a better way is by using CSS, which stands for Cascading Style Sheets.”

That sounds wrong to me because it suggests very strongly that the method they had mentioned style=“color:red” , the inline style, is not CSS or not Cascading Style Sheets! But it is!


#2

Yeah, it doesn’t sound right. Please open an issue on GitHub (if there isn’t one already) so it can be discussed with the maintainers.


#3

In the exercise: style="color:red"
Based on the instruction below:
Delete your h2 element’s style attribute and instead create a CSS style element. Add the necessary CSS to turn all h2 elements blue.

So you would need to create a style on top and add the selector