Here is the section of my code that I am struggling with:
<p style="font-family:'impact', color:red">
something
</p>
The issue I am facing is that I am unable to use both the color and the font properties together.
When I only use the font-family
property, it works perfectly fine.
Likewise, when I only use the color
property, it also works perfectly fine.
However, when I combine both properties as shown above, neither of them seem to work.
What mistake am I making in my inline style code? How can I correctly utilize the style attribute to modify multiple CSS properties at once?