How to Use Text Color Tags in HTML

Use CSS

How to Use Text Color Tags in HTML Picture 1

Choose a color for the content. While you can use basic colors (like "red") to color your text, you'll still need to use the HTML color generator to create more tones:

Visit https://www.w3schools.com/colors/colors_picker.asp in your computer's browser.

Select the background color you want to use in the hexagon at the top of the page.

Drag down the color tone you want to use on the right side of the page.

Note down the 6-character code to the right of the color tone.

How to Use Text Color Tags in HTML Picture 2

Open the HTML document. This is the text whose font color you want to change.

If you don't have an HTML document yet, create one before continuing.

How to Use Text Color Tags in HTML Picture 3

Find the content you want to colorize. Scroll through the text until you find the paragraph, heading, or other content you want to color.

How to Use Text Color Tags in HTML Picture 4

Note the content's tags. For example, if content is a heading, you'll see "

" in front of.

How to Use Text Color Tags in HTML Picture 5

Add "head" and "style" to the top of the text. You will do this by typing under the "" tag, press ↵ Enter, enter", rồi nhập đoạn mã sau (bạn nhớ thay red bằng mã màu và "

" with the tag for the content you want to color):

{ color: red; }

How to Use Text Color Tags in HTML Picture 6

Review the text. The page heading will look like this:

 
4.5 ★ | 2 Vote

May be interested

  • Introduction to HTMLIntroduction to HTML
    a few basic things to know about html before starting to learn this language.
  • Style properties in HTMLStyle properties in HTML
    the style attribute specifies the style for the html element.
  • Elements in HTMLElements in HTML
    the html element usually goes in pairs, including the opening tag, closing tag, and the content inside the two tags.
  • Div tag in HTMLDiv tag in HTML
    tags are used to define a section or a region in html text.
  • Image img in HTMLImage img in HTML
    when you visit the website, you will often see images of all sizes and positions on the page. images in html web pages will help to enrich the content as well as increase the aesthetics of the page.
  • Table in HTMLTable in HTML
    what does it take to create a table in html? is it complicated? want to add color to the table border, how to add the background color to the text in the table? in this article tipsmake.com will answer those questions and guide you to basic operations with tables on html, in addition to adding alternate color schemes for rows in the html table. invite you to follow along.
  • HTML color code - color code table in htmlHTML color code - color code table in html
    the color displayed is a combination of 3 colors red, green and blue. below is a table of color codes in html and how to use color codes in html
  • Caption tags in HTMLCaption tags in HTML
    the comment tag is used to insert comments into the source code of html.
  • PHP & XMLPHP & XML
    xml is a markup language that is quite similar to html. an xml document is plain text and contains tags limited by. there are two major differences between xml and html.
  • Abbr tag in HTMLAbbr tag in HTML
    tags are used to describe an acronym.