Home  >  Article  >  Web Front-end  >  How to change font color in HTML

How to change font color in HTML

php中世界最好的语言
php中世界最好的语言Original
2017-11-21 10:26:456256browse

Where to change the font color setting in html? What are the methods to set the font color code in html?

Today I will introduce to you how to set the font color in HTML, how to modify the font color, and how to accurately obtain the font color.

1. html fontFont color setting - TOP

In HTML, we use the font tag to set the color of the font content.

1. Font syntax:

<font color="#FF0000">我是红色字体</font>

First of all, font is a pair of regular tags. Put the font text content into the tag. Set the color color + the corresponding color value in the font tag to set the font tag. ObjectInternal font color.

2. Example of html font setting font color

2-1. Complete code of html font color example:

 
 
 
 
font字体颜色在线实例 
 
 
<font color="#FF0000">我是红色字体</font> 
你好

html Where to change the font color setting? It ends here. , friends in need can continue to pay attention to this site.

Related reading:

css3 Examples of Implementing Shadow Effects


What you need to pay attention to in css layout Click


Using css to implement the pause and play function of css animation tutorial

The above is the detailed content of How to change font color in HTML. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn