How to set the font color in HTML

Source: Internet
Author: User
Do the site must want to make their website content colorful, then you may want to change the black font, how to set the font color of the page? Let's give you a brief introduction today.

div font Color div inside text color settings Chapter

Use CSS style Word: color

Set font color inside div tag

Set font text color inside div tags use the style property to set CSS color

<div style= "color: #F00" > My color is red </div>

div external Set Font text color

External CSS settings div inside the font color is blue

1. CSS code inside the head tag

<style>. abc{color: #00F} </style>

2. Body Web content Code

<div class= "abc" > My color is blue </div>

HTML font color settings on so many, more wonderful please pay attention to the PHP Chinese network other related articles!

Related reading:

Why CSS styles are set for div?

How to use HTML

HTML drop-down menu code

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.