How can I change my font color with html?

html

Solution

Most simply:

<p style="color: red;">Foo</p>

However, it is preferable to indicate semantic meaning in your HTML, so defining a CSS class like this would be better:

<p class="error">Foo</p>

Where "error" is defined in your stylesheet:

.error {
  color: red;
}

CSS classes are also reusable, and can keep extra complexity out of your HTML, e.g. you might expand the style later without having to change your HTML:

.error {
  color: red;
  font-size: 1.2em;
  font-weight: bold;
}

Problem

I'm making a web page where I want the color of the font to be red in a paragraph but I'm not sure how to do this. I was using FrontPage for building web pages before so this HTML stuff is really new to me. What is the best way to do this?

Original source