Making a word a certain color including the style attribute


#1

For now, we'll continue to use the style attribute to change colors. Wrap the word "red" in the editor in <span></span> tags and give the <span> tag style="color:red". Notice how only the word between the <span></span> tags changes color!

Example-<p>This text is black, except for the word red!</p>


#2

Do you have a question?


#3

This seems like the instructions, what is the question? Struggling with wrapping the word red in a span tag and adding a style attribute?


#4

I'm having the same issue with this part. I have the word RED wrapped and actually in the color red but the exclamation point ! is also changing red so it keeps giving me this error - Oops, try again.
Make sure only to wrap the word "red" in the tags!

This is what I have

This is black, except for the word red!


This text is black, except for the word red!


#5

edit your code, press ctrl a and then ctrl shift c then we can see your code :slightly_smiling:


#7

Still can't see any of the surrounding code tags

did you select it all and press crtl shift c

sorry forgot the shift part


#8

This text is black, except for the word red!

this is posting for me?? I think I'm doing what your asking though??


#9

https://codecademy.com/courses/web-beginner-en-f8mcL/2/3?curriculum_id=50579fb998b470000202dc8b


#10

Is there any code tags around that?

like

<p>This text is black, except for the word <span>red!</span></p>


#11

That links me to my own exercise :wink:


#12

Oh boy....Yes it does look like what you have though


#13

Make it this, should let you pass

<p>This text is black, except for the word <span style="color:red">red!</span></p>


#14

Thank You!!! It worked!