How to set font color in css

coldplay.xixi
Release: 2023-01-03 09:29:18
Original
16287 people have browsed it

How to set the font color in css: 1. Use the font tag directly; 2. Use the p tag, the code is [

123.]; 3. Use the span tag, the code is [<span style="color:red;"></span>].

How to set font color in css

The operating environment of this tutorial: windows7 system, css3 version, DELL G3 computer.

How to set the font color in css:

Method 1. Use the font tag directly:

<font color=&#39;red&#39;>123</font>
Copy after login

Method 2 , use ptag

<p style="color:red;">123</p>
Copy after login

Method 3, use spantag

<span style="color:red;"></span>
Copy after login

How to set font color in css

Finally, method 2, 3 above, you can change the inline style to the class reference style, as follows:

How to set font color in css

## Recommended related tutorials:

CSS video tutorial

The above is the detailed content of How to set font color in css. 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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!