如何使用html更改字体颜色? [英] How can I change my font color with html?
本文介绍了如何使用html更改字体颜色?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在制作一个网页,我希望字体的颜色在段落中是红色的,但我不知道该怎么做。
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.
我正在使用FrontPage构建网页,所以这个HTML的东西对我来说真的很新鲜。什么是最好的方法?
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?
推荐答案
<p style="color:red">Foo</p>
或者更喜欢:
<p class="error">Foo</p>
您的样式表中定义了错误:
Where "error" is defined in your stylesheet:
.error {
color: red;
}
这篇关于如何使用html更改字体颜色?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文