Display boldfaced text within paragraphs in a blue font using CSS/HTML?

RANDY B

New member
In my .css file I need to make the boldfaced text within a paragraph the color blue.

When I do this: b { color: blue: } it makes all bold text blue. I only want the bold text with <p> paragraphs to be blue.

I tried this but it didn't work: p { b { color: blue} }
Thanks everyone. This worked:
p b { color: blue }
 
Back
Top