Answers for "how to change color of one word in html"

2

how to give color to text in html

HTML color to text
<body>
  <p style="color:#FF0000";>Red paragraph text</p>
</body>
Posted by: Guest on December-01-2020
0

html css text style on a word

<html>
  <head>
    <style type="text/css">
      p { 
        font-size:14px; 
        color:#538b01; 
        font-weight:bold; 
        font-style:italic;
      }
      .date {
        color: #ff0000;
      }
      .season { /* OK, a bit contrived... */
        color: #0000a0;
      }
    </style>
  </head>
  <body>
    <p>
      Enter the competition by 
      <span class="date">January 30, 2011</span>
      and you could win up to $$$$ — including amazing 
      <span class="season">summer</span> 
      trips!
    </p>
  </body>
</html>
Posted by: Guest on January-03-2021
0

html css text style on a word

<p style="font-size:14px; color:#538b01; font-weight:bold; font-style:italic;">
  Enter the competition by 
  <span style="color: #ff0000">January 30, 2011</span>
  and you could win up to $$$$ — including amazing 
  <span style="color: #0000a0">summer</span> 
  trips!
</p>
Posted by: Guest on January-03-2021

Code answers related to "how to change color of one word in html"

Browse Popular Code Answers by Language