Font text"; 2. Use the style attribute in the label element containing the font text and add "color: Color value;" style is enough."> How to set html font color-HTML Tutorial-php.cn

How to set html font color

青灯夜游
Release: 2021-05-06 11:37:34
Original
80181 people have browsed it

htmlHow to set font color: 1. Use the font tag, the syntax "font text"; 2. In the label element containing the font text Use the style attribute in and add the "color: color value;" style.

How to set html font color

The operating environment of this tutorial: Windows 7 system, CSS3&&HTML5 version, Dell G3 computer.

Method 1: Use the font tag

to specify the font, font size, and font color of the text.

Syntax for setting font color:

字体文本
Copy after login

Example:

    
我是默认黑色字体
我是红色字体
Copy after login

Rendering:

How to set html font color

##Method 2: Use the style attribute to add the "color: color value;" style

Example:

    
我是默认黑色字体
我是红色字体
Copy after login
Rendering:


How to set html font color

Recommended tutorial: "

html video tutorial"

The above is the detailed content of How to set html font color. 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
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!