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

  • How to Copy Secure PDF Files on Windows or Mac ComputersPhoto of How to Copy Secure PDF Files on Windows or Mac Computers
    this is an article showing how to copy text from a pdf file with editing functions locked on a windows or mac computer. when a pdf file has a password set to lock the editing function, you cannot copy the content in most pdf file viewing programs. if you don't know the password, you can save the file as an unsecured pdf using google chrome or unlock it using the smallpdf site. if you know the password, unlock the file using adobe acrobat pro. these methods only work if you can still view and print the pdf without a password. if the pdf file is encrypted and has a password lock that prevents you from viewing the file the first time you open it, it means you can't bypass the security settings.if you need to create, merge, or convert pdf files, try tipsmake's pdf toolkit - it's a free and easy-to-use tool that helps you process documents more efficiently.
  • How to Password Protect PDF FilesPhoto of How to Password Protect PDF Files
    today's tipsmake will show you how to lock a pdf document with a password to prevent others from opening the file without entering the correct password. there are several free online services to do this, or you can use the paid version of adobe acrobat pro (if available).
  • How to Delete Undelete FilesPhoto of How to Delete Undelete Files
    this is an article showing how to delete regular files that cannot be deleted on your computer. in most cases, files that cannot be deleted are being used by some program or service; you can solve the problem by starting your computer in safe mode to stop most programs and services. if the file is corrupted or the computer reports that the file cannot be found, repairing the hard disk error may fix the problem. on android phones and tablets, you can use third-party apps to delete files. however, the article does not instruct on deleting system files, as this may cause the computer to crash.
  • How to Open Password-Protected Excel FilesPhoto of How to Open Password-Protected Excel Files
    this article explains how to remove the password of a protected excel worksheet and how to crack the password of an encrypted excel file. in most cases, removing the password of a worksheet that is locked from editing in an excel file is quick and simple! however, if you need a password to open the file, the operation will be more complicated. there is no official way to decrypt excel files without using a password cracking program - often a resource-intensive process depending on the complexity of the password. you should still try it though!
  • How to Save Files to USBPhoto of How to Save Files to USB
    this article shows you how to move, save, and download files to a usb attached to your computer.
  • How to Destroy Sensitive DocumentsPhoto of How to Destroy Sensitive Documents
    each month, you may receive a variety of documents containing sensitive information, such as bank statements, credit card account statements, payroll or invoices, or maybe you work for government or companies that specialize in handling confidential information. throwing these documents in the trash will not be safe enough from the eyes of curious people. to avoid your information being used illegally or for malicious purposes, you need to handle it more thoroughly.