htmlcsshtml4

setting color and font-size inline in HTML4?


Sorry for the retro question, but I have to add two highlighted paragraphs of text (just a kind of "oldness warning") to a VERY old website (HTML4), and I can't seem to find out how to set text color and size as inline attributes in HTML4.

I tried all kind of attributes in the pand h2 tags (like <p color="#ff0000">also "text, "text-color" and others, but none of them worked.

I know all this for today's standards, but this is in HTML4. Is anyone old enough to remember? ;-)


Solution

  • Please check this out.

    <p style="color:#ff0000; font-size:12px;">
    

    you can check by reducing font site or can write like this for forcefully apply style in html element:

    <p style="color:#ff0000; font-size:12px !important;">