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

How to change font color in HTML

php中世界最好的语言
Release: 2017-11-21 10:26:45
Original
6346 people have browsed it

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>
Copy after login

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>
你好
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template